I really killed a few hours to try and fix it, googling for a solution, but I couldnβt.
I have a car, this is a trolley, so there are no suspensions (technically there are, but the values ββare close to 0 to simulate tires). The vehicle has a rigid body, and the children's object contains 4 collider wheels (and the model itself), as can be seen here:
https://dl.dropboxusercontent.com/u/76599014/sxc/Clipboard01.jpg
For testing, I added a short script to make the car move. It is called "gokart" in GameObject:
public class carControler : MonoBehaviour { public WheelCollider fr, fl, rr, rl; public float performance = 50f; void FixedUpdate () { throttle(); } public void throttle() { this.rl.motorTorque = this.performance; this.rr.motorTorque = this.performance; } }
What happens : rear wheels begin to rotate as intended, but the car begins to slowly sideways strong>. The speed of movement depends on the magnitude of the torque (in this case, the rotation of the wheel). there is no forward movement , therefore it is not a mistake when, when you are standing on a flat surface, you drift on the sides.
Any ideas? If you need a video or GIF (I have to figure out how to do this), I will be happy to provide it.
source share