[ODE] Assembling Bodies
Wesley Smith
wesley.hoke at gmail.com
Tue Apr 18 08:06:36 MST 2006
Hi, Yes, thanks very much. I didn't find an IsConnected function per
se, but dBodyGetNumJoints works just fine. Now, I have a question
about the fixed joint. How can I use it to keep two objects from
"merging" together. Is there an anchor setting for this joint? There
aren't any docs on it, so I'm not sure. When I use dBodyGetNumJoints
to prevent a collision, the objects no longer bounce off each other
but instead end up occupying the same space.
thanks,
wes
On 4/18/06, J. Perkins <starkos at gmail.com> wrote:
> On 4/18/06, Wesley Smith <wesley.hoke at gmail.com> wrote:
> > In any case, how do people usually handle this kind of thing in ODE?
> > Is it necessary for me to remove the joined pairs from the collision
> > callback?
>
> That's correct. You should not create collision joints on those two
> bodies if they already have a fixed joint between them. ODE has an
> "IsConnected" method (check the docs, don't remember the exact call)
> to tell if there is a joint in place between two bodies.
>
> HTH,
>
> Jason
>
More information about the ODE
mailing list