How to make car controller?

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
ibnefazil
Posts: 8
Joined: Tue Dec 16, 2008 9:38 pm

How to make car controller?

Post by ibnefazil »

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
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

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.
Image
geckoman
Posts: 143
Joined: Thu Nov 27, 2008 11:05 am
Location: Germany
Contact:

Post by geckoman »

FIRST I would have a look into the tutorials, that are coming with Irrlicht, then I would try to move ANYTHING in Irrlicht (Tutorial Nr. 4) and then, IF you need it, you should look at IrrPhysx like dlangdev mentioned.
fmx

Post by fmx »

Yeah, have a look through the Tutorials first, then learn how to use Irrlicht vectors and matrices to deal with angles.

Don't even THINK about diving into Physics API's / Wrappers yet!
You'll get nowhere fast

;)
ibnefazil
Posts: 8
Joined: Tue Dec 16, 2008 9:38 pm

Post by ibnefazil »

thanx dlangdev :D bullet is cool :idea:
Post Reply