[ODE] How to Pin Body
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Fri Oct 28 14:46:06 MST 2005
You have three bodies: the "pinned" body, and the two other "attached"
1) How are the other bodies attached?
2) WHAT is the "pinned" body pinned down relative to?
If the anser to 1) is "with any kind of joint, attached between pinned
body and the other body" and the answer to 2) is "to a specific
world-space coordinate) then it would work fine to attach the pinned
body to 0 using a fixed joint. It would also work fine to just attach
the two other bodies each to 0, instead of the pinned body, and then
just use a geom for the pinned object.
R. Frazier wrote:
> It must be buried or not using any obvious keywords because I still
> can't find
> such information in the docs.
> However, I need to be able to pin down a body that is attached to two other
> bodies, so I can't put world as the first or second argument.
> So, how to pin a body in this case?
>> From: Guillaume Jouffroy <oxymore at tele2.fr>
>> To: "R. Frazier" <rtdoger at hotmail.com>
>> CC: ode at q12.org
>> Subject: Re: [ODE] How to Pin Body
>> Date: Fri, 28 Oct 2005 11:30:04 +0200
>> R. Frazier a écrit :
>>> In the ODE test sample called Test_Chain1 or similar examples, how
>>> would I pin down
>>> a linked body to a fixed position so it doesn't move? And where in
>>> the simulation loop should
>>> I do this pinning?
>> This is written in the ode documentation. Just create a joint and
>> declare it to be fixed to the world.
>> Put 0 as the second body argument = attaching to the world).
>> Hope you'll read the documentation one day ;o)
> Scan and help eliminate destructive viruses from your inbound and
> outbound e-mail and attachments.
> Start enjoying all the benefits of MSN® Premium right now and get the
> first two months FREE*.
> ODE mailing list
> ODE at q12.org
More information about the ODE