So I am currently working on a motorcycle game. As it is right now I have two wheel colliders on the bike, one on the front and one on the back. I also have a movement script applied which is working fine. The problem im having is my model is constantly falling over. Iv tried applying a box collider and shaping it to be used as some sort of stabalizing bar but that made the model jump all over the place upon starting the game. Anyone have any ideas about how to balance the model? Thanks in advance for the help.
Have you tried lowing the centre of mass? Don’t move it down too much, you still want the bike to bank on corners, etc.
rigidbody.centerOfMass
thanks for the info though I am confused as to how to actually change that. I see the code that you have provided but where do I implement is. I looked to see where I could edit the rigidbody options but wasnt able to find centre of mass. Thanks for your help btw!
In your motorcycle script, put something like this at the end of the Start() function.
rigidbody.centerOfMass += new Vector3(0.0f, -0.6f, 0.0f);