blackgun
10-08-2007 06:09:21
I plan to move the code from pyODE to Python-Ogre.
But I am confused by the OgreODE, this is a question mainly about OgreODE, but i use PythonOGRE, so maybe it is the right place.
I can understand this way like this:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=374
It creates ogre entity, node, and a ODE body, then tranfer the ode.body's position and rotation to ogre.node. at last do "world.step". That is ok.
but I didn't find the code binding ogre.node with ode.body from Python-OgreODE demos.
i don't know how the ode.body's postion and rotation transfer to ogre.node
and i didn't find the "world.step". I remember OgreNewton has a "BasicFrameListener" do some similar "world.step" job.
So, what I miss?
But I am confused by the OgreODE, this is a question mainly about OgreODE, but i use PythonOGRE, so maybe it is the right place.
I can understand this way like this:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=374
It creates ogre entity, node, and a ODE body, then tranfer the ode.body's position and rotation to ogre.node. at last do "world.step". That is ok.
but I didn't find the code binding ogre.node with ode.body from Python-OgreODE demos.
i don't know how the ode.body's postion and rotation transfer to ogre.node
and i didn't find the "world.step". I remember OgreNewton has a "BasicFrameListener" do some similar "world.step" job.
So, what I miss?