[ODE] Is body connected to plane?

Jon Watte (ODE) hplus-ode at mindcontrol.org
Wed Aug 23 15:41:58 MST 2006


dGeomGetBody() will return 0.

Note that it's OK to connect a joint to 0; 0 means "the unyielding 
static environment".

Cheers,

/ h+


Jeff Kershner wrote:
>
> How can I determine if a bodyID is connected to something that doesn’t 
> have a bodyID (like a dCreatePlane)?
>
> dAreConnected only works with two valid bodyIDs.
>
> I see that in the collision callback function, there is a joint 
> created between a body and the plane but the plane’s bodyID is 0.
>
> Thanks,
>
> /jk
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>   


More information about the ODE mailing list