JV-ODE Physics Thread 3

Blitz3D Forums/Blitz3D Userlibs/JV-ODE Physics Thread 3

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.

@Topknot: If you're experiencing crashes, you're probably forgetting to check a collision has occurred beforehand.

Doing the following will cause ODE to crash if there are no collisions detected...

GeomX=dGeomCollisionX#(CGeom,1)

To solve this you just need to check to make sure a collision has occurred before calling it...

If dGeomCountCollisions(CGeom)>0
GeomX=dGeomCollisionX#(CGeom,1)
End If


This applies to all of the collision functions, including the sub-collision functions.

If you're still a bit stuck, post your code using the <codebox> </codebox> tags (change <> for []) as Shifty suggested and we can take a look at it for you.