PDA

View Full Version : Has anybody a driving licence for a TANK???



Fredy
06-13-2001, 12:40 AM
I working on a game where i have to drive a tank and i have a little problem with turning...
When i move forwards and push the right arrow, then the tank goes to the right (simple), but when i go backwards and i push the right arrow, then iam not sure where the tank should go? ( left or right ). A car goes right when i go forwards or backwards but i have newer drived a tank. http://www.opengl.org/discussion_boards/ubb/biggrin.gif

PS: the game is made in OpenGL of course

[This message has been edited by Fredy (edited 06-13-2001).]

Gavin
06-13-2001, 03:56 AM
Hey Fred...
Well a tank has two levers as you probably know.. One for each track. Each allows you to specify speed and direction of that track. I.e. forward is forward and back is back (!). The thing is that to turn right you could.
a) Slow down left track (long slow turn)
b) Stop left track (turn about left track)
c) Slap left track into reverse (turn about center of the tank)

Obviously the opposite works in reverse...