Constraint to prevent a motorcycle from falling over

Post Reply
tom83
Posts: 2
Joined: Tue Feb 23, 2016 3:25 pm

Constraint to prevent a motorcycle from falling over

Post by tom83 »

Hello,

I have a game with a motorcycle and the motorcycle falls over (to the left/right) because it has only two wheels.

My physics simulation is very simple and I just want to force the vehicle to always have a pitch value of zero, so it stands upright.

I have found contrains that are relative to another object. Do I have to add another object or is there an easy way to force one object to have a specific angle.

Tom
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: Constraint to prevent a motorcycle from falling over

Post by Basroil »

I think you forgot that the world itself can be used.

Physics wise though, you're better off just making a controller that shifts a "driver" left and right to balance it like a real bike, since once you put in real graphics now you'll have a physics controlled driver at zero cost (well, some cost in physics, but very little extra)
Post Reply