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!
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!