Maximum Speed

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Browndog
Posts: 74
Joined: Thu Aug 18, 2005 2:53 am

Maximum Speed

Post by Browndog »

I'm having some trouble with the Max speed of my ships. I'm using ODE for physics and I'm wondering how I can get it so that my ships have a top speed. If I simply apply a force to a body it keeps getting faster and faster forever. To counter this I subtract the velocity of the body from the force being apply, which seems to work but I dont think its a very dynamic solution. Can anyone suggest a better way of doing this?
Xaron
Posts: 310
Joined: Sun Oct 16, 2005 7:39 am
Location: Germany
Contact:

Post by Xaron »

Well, I don't know ODE as I use Newton, but that shouldn't matter. In Newton you have to set a linear damping factor. Using this factor the maximum speed will be limited as the friction becomes higher and higher as the speed increases...

Regards - Xaron
Browndog
Posts: 74
Joined: Thu Aug 18, 2005 2:53 am

Post by Browndog »

yeah thats exactly what I'm after yet I dont seem to be able to find it in ode
Post Reply