JV-ODE Physics Thread 2

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

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.

Me again! I'm getting problems with using an external library of functions. I've got an include file with setup functions for ode objects and meshes. I declare global ODE_World, Space and so forth in this file.

In the main program I create the ode world (dWorldCreate() etc). I have an array of objects that when I create them accessing my included functions, they exist. I call my function ODE_Setup(), use 'a#=dGeomGetPositionX#(objects(0)\geom)' and get a value for the first ODE objects X position.

This is fine and dandy until I advance the simulation with dWorld(Quick)Step(). The moment I call this function, 'dGeomGetPositionX#(objects(0)\geom)' = NaN.
'Objects(0)\geom' exists, but it has no position or rotation.

This, unsurprisingly, leaves me confused!