JV-ODE Physics Wrapper

Blitz3D Forums/Blitz3D Userlibs/JV-ODE Physics Wrapper

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.

Hi Barton,

I've had a look for you, the problem seems to be caused by the dSpaceDestroy function. This function isn't really necessary here though, because it basically does the same thing as dGeomDestroy does in your CLEAR_ODE() function. Using dGeomDestroy is probably the better way to do it.

Anyway, try this function and see if it works any better...

Function CLEAR_ODE ()
 For ode.ODEGeom=Each ODEGeom
  dBodyDestroy(ode\body)
  dGeomDestroy(ode\geom)
  Delete ode
 Next
 dJointGroupDestroy(ContactGroup)
 dWorldDestroy(World)
 dCloseODE()
End Function

It seems to work fine here, let us know if you still have problems with MAV's at your end ;)