[Solved] Creating a vehicle : problems

Jérémie

08-11-2008 20:13:49

Hi ! 8)

For several days, I've tried to create a vehicle with OgreNewt. Actually, I want a fast and very simple (not realistic) vehicle (a tractor). But, I want it being very stable and that it never rolls over. Like in Mario Kart, for instance : vehicles stay always on the right side, you know ?

So, I tried to use Vehicle class. But I can't make a stable tractor, easy to handle. Or suspensions are too visible, but because it's a tractor, I want that wheels stay in place.


Do you understand my problem ? If you have any idea, please help me ! :( Thanks a lot.

Jérémie

16-11-2008 01:41:47

Ok, finally I haven't used the Vehicle class to implement my vehicle. I simply use the setVelocity() method on my tractor, whose body is just a box, depending on its orientation.

I made a function isOnGround(), using Raycasting, in order to not have the tractor fly.

I found ideas on his forum, so thanks to all people. :wink: