I have a go kart that I can drive around my scene. I am making a course for it to follow, but when it goes uphills or over any bumps, it takes them as jumps and goes flying quite far away. I am not planning to put any jumps in the course so the car can stay on the ground the whole time. I’ve looked around the answers a bit and haven’t found anything that makes sense, to me at least. What is the best way to keep my car grounded?
Thanks
create a downforce for your car by-
var downforce = 100;
function Update()
{
rigidbody.AddForce(-transform.up*downforce);
}
or set the center o mass by
var COM : Vector3 = Vector3(0,-0.9,0.2);
function Update(){
rigidbody.centerOfMass = COM;
}
Play around with the values a little bit to get which suit you
Make sure your car- gameObject has a Rigidbody component attached, Use gravity is “checked” and change your Rigidbody mass about 60.