Hi!
I need some ideas to include ODE Physics in DreiDe...
My first idea:
The type "TEntity" becomes the attributes "ODEBodyID" and "ODEGeomID" in addition.
So you have to call at any frame MyEntity.UpdateODE(). UpdateODE will take the in ODE computed position and orientation and set it to this entity.
But what is wih other things? MyEntity.SetPosition(...) or dBodySetPosition(MyEntity.GetODEBody(), ...) ?
Or does DreiDe realy need a directly implemantation of ODE? DreiDe is firstly a rendering engine, or what you think? So I only show you, how to use ODE with this rendering engine.
cu olli
I need some ideas to include ODE Physics in DreiDe...
My first idea:
The type "TEntity" becomes the attributes "ODEBodyID" and "ODEGeomID" in addition.
So you have to call at any frame MyEntity.UpdateODE(). UpdateODE will take the in ODE computed position and orientation and set it to this entity.
But what is wih other things? MyEntity.SetPosition(...) or dBodySetPosition(MyEntity.GetODEBody(), ...) ?
Or does DreiDe realy need a directly implemantation of ODE? DreiDe is firstly a rendering engine, or what you think? So I only show you, how to use ODE with this rendering engine.
cu olli