I think this may be more of a direct ode question rather than odejava, but some one around here may have experience with this.
I have a Body on which I am calling addRelForceAtRelPos(…) I’m assuming thiat this is calling dBodyAddRelForceAtRelPos(…) native ode side. I have a box and I am adding a force of (-5,0,0) at (0, boxlength/2, 0) I expected this to act like a lever and make the box spin around the z axis.
(I’m playing with the idea of the force being a directional thruster on the back of a hovercraft or one of those swamp boats with the big fan on the back, where the direction of the thrust stears as well as thrusts. if it helps)
All goes well up to the point where one full revolution has compleated then the box reverses direction and spins the other way, at the same angular velocity (it’s not slowing down then reversing direction). I expectet relative position and diretion to stay the same no matter which direction it is facing.
Does any one know if this is whats supposed to be happening? Have I miss understood somthing?
I thought it may be how I was getting the direction (odeBody.getAxisAngle().angle) but when I just have a direct thrust applied to the cog and have the box bouncing off walls the direction seems to be drawn correctly.
I hope some one has some clues.
Cheers,
Dan.