Re: set the position of a link
jon klein <[email protected]> Tue, 8 Mar 2005 08:53:47 -0500
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Mar 6, 2005, at 3:56 PM, Naiqi Weng wrote: > Hi, Jon > I have created a physics-enabled "puppet" ( a MultiBody),and I am > trying some interaction with this puppet. So the problem is sometimes > I want to move the specific link(for example, the head of the puppet) > to a specific location in the 3D space. But I found there is no way to > set a link's location in Breve1.9. Is there a proper way to set the > link's location without break the physics engine? I am still using > Breve 1.9 because I made some revision to the source code to make the > puppet to show on a special display device.I haven't got the Breve2.0 > working on that display. I would really appreciate if you could look > back into Breve1.9 and give me some suggestions. Thanks a lot! It looks like you're asking how to move the head of the puppet, while leaving the rest of the body elsewhere, and it also sounds like this is for the purpose of user-interaction only, not for simulation. If so, one way to do it is by using the Joint methods set-parent-link-point and set-child-link-point. This allows you to leave the objects connected together, while controlling their positions relative to one another. Normally you would not use link points that cause jointed objects to be physically separated from one another, but for purposes of user-interaction, this should work just fine. - jon klein _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve