- Home /
Car flips when it turns
I have made a car that drives when you use the arrow keys. Everyhing works great except that it flips when you turn even if you are going at a relatively low speed. Is there any way that I can make a lower center of gravity for the car, or maybe make it more balanced so it wont flip? Steve
You can set it's center of gravity by using rigidbody.centerOf$$anonymous$$ass http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody-centerOf$$anonymous$$ass.html
Start(){
rigidbody.centerOf$$anonymous$$ass = new Vector3(0, -2, 0);
}
Thanks, I added it in but my car still flips. Should I change the numbers? What to?
Answer by Steve Cogbill · Feb 07, 2014 at 09:49 PM
Nevermind, I just changed the y value to 0 and it works. Thanks for the help. Steve
Your answer
Follow this Question
Related Questions
Car speedometer MPH 1 Answer
How to make Characters take Damage on speed Collision hit? 2 Answers
How to add car speed to a car controller script 1 Answer
How do I limit the speed of my car? 0 Answers
Car flips, wheel colliders 1 Answer