[fluxus] how to get position etc after being moved by the physics engine?
Claude Heiland-Allen
claudiusmaximus at goto10.org
Mon Jul 17 11:41:52 PDT 2006
Dave Griffiths wrote:
>> Hi all,
>>
>> I've got some code that splits an object in two, but the two new objects
>> are always created at the origin because I don't know how to get the
>> position of the original object after it has been moved around by the
>> physics engine. Any clues?
>
> does:
>
> (grab object)
> (let ((pos (vtransform (vector 0 0 0) (get-transform))))
> (ungrab)
> ...
> )
>
> work?
Perfect! :)
> (you probably want the rotation too)
Not necessary at the moment, but it would be nice to know how to get it
- I didn't know where to look in the manual to find this stuff - the
function list is strangely empty on the website - but vtransform sounds
like it might be in the maths section.
> cheers,
>
> dave
>
Thanks,
Claude
More information about the Fluxus
mailing list