JV-ODE question...

Blitz3D Forums/Blitz3D Userlibs/JV-ODE question...

Santiworld(Posted 2008) [#1]
i have a problem to understand this concept...

i have entitys from blitz..

example...


ship = loadanimesh("ship.b3d")
while..
moveentity ship,0,0,speed#
turnentity ship,0,turn_speed#,0
wend


can i make this entity (ship) could be the father of a ODE body?...

i need this ship to collided with others ode objets...

sorry if this question is confuse or too obvious... i can't find answers in ode manuals..

thanks...


VIP3R(Posted 2008) [#2]
You can't parent an ODE body to a Blitz entity (if that's what you mean by father?), technically you can, but ODE objects must not have their position and rotation forced, which parenting would do.

To make the ship collide with other objects you need to create an ODE body/geom to represent it. To move the ship you should remove the 'MoveEntity' and 'TurnEntity' (as those would force the position/rotation) and apply forces to the ODE ship object instead with functions like dBodyAddForce(). You can add forces in different ways, each available force function is listed in both the ODE docs and the JV-ODE Function Reference doc.


Santiworld(Posted 2008) [#3]
thanks VIP3R...! :)