[ODE] Another question about contact joints
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Tue Jan 3 10:40:47 MST 2006
Most users expect both geoms to be non-NULL, because a contact is (by
definition) between two geoms -- else there can't be a contact. To know
that the geom is immovable, users usually check for the body ID of the
geom, and if it's NULL, it's immovable.
If you only use your contacts yourself, and this code is not intended
for others, and your nearcallback/collision code knows how to deal with
NULL g1/g2 fields, then I don't think you need to fill them out.
Cheers,
/ h+
Guru2012 wrote:
> My question is if those values can be set to NULL or 0. More
> specifically, I am creating a contact joint with an immovable object, so
> I'm leaving the contact joint's second body null, but in that case, can
> I leave g2 null? In addition, can I simply leave both values in the
> dContactGeom null?
>
> -Andrew
More information about the ODE
mailing list