ODE Breakable Joints?

Blitz3D Forums/Blitz3D Userlibs/ODE Breakable Joints?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Josh, to set which geoms can collide with others, use the functions:

dGeomSetCategoryBits(geom, bits);
dGeomSetCollideBits(geom, bits);

Those are form the C API, the one I use. Don't know if they are implemented in the Blitz wrapper.

The category bits set the category of a geom. The collide bits indicates with which categories of objects it can collide. These are "flags" values, so the list of categories should be power of two. For example:

Const GROUP_PLAYER = 1
Const GROUP_WORLD = 2
Const GROUP_BROKENSTUFF = 1

For example, a geom which belongs to the GROUP_BROKENSTUFF category, would collide with GROUP_PLAYER and GROUP_WORLD, but not with other GROUP_BROKENSTUFF geoms.