JV-ODE Physics Thread 6

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

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.


I think that dBodyDestroy command doesn't remove objects from the world. How do I remove objects from the world? The ball and the pins that were knocked down should be removed before the next roll of the ball and all pins should be removed and 10 new pins set up before the next frame of the game. In Frame 10, you get three rolls of ball if you get a spare or a strike.


You don't need to destroy them, you can re-use them by resetting their position and rotation. When you destroy an ODE body or geom, you must also delete the ODEGeom type objects associated with them (ode\body, ode\geom etc). Btw, where did you learn your manners? because you need a refresher course.


the only fix I know of is to reduce processing requirements, or cap to a sub frame-rate at say half the screen refresh rate.


Exactly right, the code either needs streamlining or you have to settle for a lower design frame rate. Your alternative timing method is one of the best I've seen so far, but the simulation would suffer from inconsistency across different frame rates ;)