[ODE] How to use category bits?

michael kapelko kornerr at gmail.com
Fri Sep 15 02:20:13 MST 2006


I have: map (ground), boxes, capsule (player), ray (gun ray).
I want the capsule to be collideable with everything except for the ray.
And I want the ray to be collideable with everything except for the capsule
Will this work:
dGeomSetCategoryBits (capsule_geom, 1);
dGeomSetCategoryBits (ray_geom, 2);

dGeomSetCollideBits (map_geom, 1 | 2);
dGeomSetCollideBits (box_geom, 1 | 2);
?
Thanks.


More information about the ODE mailing list