[ODE] how to make 2 boxes do not collision?

Francisco Leon projectileman at yahoo.com
Mon Nov 20 15:24:37 MST 2006

Use these functions:

dGeomSetCategoryBits(dGeomID geom, unsigned long bits)
dGeomSetCollideBits (dGeomID geom, unsigned long bits)

for mask collisions. In ODE routines each pair is
compared using the following expression:

if(geom1->category_bits & geom2->collide_bits)
 ||(geom2->category_bits & geom1->collide_bits)
///Call collision callback

Just make the "category_bits"  and "collide_bits"
fields incompatible for these 2 boxes.

--- sssa2000 <sssa2000 at 163.com> wrote:

> for example, i have 2 boxes in a room.
> the room is made by 4 planes.
> i want there are no collisions between the 2 boxes,
> how can i do it?
> Thanks!>
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode

"Technocracy Rules with Supremacy"
Visit http://gimpact.sourceforge.net

The all-new Yahoo! Mail beta
Fire up a more powerful email and get things done faster. 

More information about the ODE mailing list