I’ve been looking around Google and here for a while now and I can’t find anything describing my problem exactly. I’m pretty new with Unity, but I’m pretty familiar with C#.
I have a simple scene with a racetrack and a race car with 4 wheels (as they tend to have). The race car has a script attached to it that is basically this one. (I just updated some of the variable names to my liking). The car prefab has a rigidbody, and each wheel has a wheel collider. I’ve set the mass of the car as high as 5000, no difference there.
When I start my scene, the car immediately goes bananas. By which I mean it launches into the air, backwards, at a high rate of speed. The front wheels also come flying off sideways away from the car.
This is a screenshot after less than a second of time passes. You can see the front tires on the ground. The car starts the scene at the first starting position, on the ground.
I’ve tried disabling the script that’s attached to the car. The result of that is that the car just starts flipping over and over, like it’s bouncing on the pavement, until at some point it falls through the track into the nothingness below.
Any ideas?