Game Development Community

Flying Vehicle never stops turning

by Robert Norris · in Torque Game Engine · 08/18/2005 (6:54 am) · 4 replies

Hello,

i've derived my own player-class from flying vehicle and want to modify the navigation. Here is my problem:

if i stop moving the mouse, the view will still move until the dampening slowes it down. If i disable damping totally, the view will never stop and will just go into the direction i moved the mouse for infinity. How can i modify the flyingVehicle class so that the view stops, when i stop moving the mouse?

I've treid a couple of things in the updateMove() function, but nothing works correctly. Perhaps someone has a codesnippet or something like that?

best regards
Rob

#1
08/18/2005 (7:56 am)
I did get some help from Ben Garney in this area a while back.. but I'm not sure where I keep it.
I'll bump this thread if I find it.
#2
08/18/2005 (12:16 pm)
Modify the client side move code so that it damps the mvPitch/Yaw variables back to zero?
#3
08/19/2005 (1:17 am)
Thanks for your replies.

After a lot of searching here in the forum, i finally found this thread

The change is simple and works fine, so, if anyone is looking for a solution for the same problem, check the thread :)

best regards
Rob
#4
08/19/2005 (1:44 am)
Thanks for the follow up!