Hi
Im new to game programming.
I want to make a car racing game in which i have a road as one ISceneNode and a car as another ISceneNode.
now if i press W, car should move forward...
pressing S should make it move backword...
pressing D should make it rotate clockwise...
and A should rotate it anti-clockwise...
and when car rotates, suppose at 45 degree, pressing W should move it forward towards the direction it faces now...
anybody can please help?
umar
How to make car controller?
You will get more results and a chance at getting your car to move in a gameworld if you look into a Physics library. A PhysX wrapper made by JP is a good start, you can also look at Bullet, they have a vehicle demo program that you can play with.
Also you can write your own custom controller if you have the background needed to code a vehicle controller.
Also you can write your own custom controller if you have the background needed to code a vehicle controller.