- Home /
Question by
xxBarginsxx · Jan 19, 2015 at 08:21 PM ·
physicscarwheelcollider
Wheel Collider Behaving a bit Strange in unity 5. Any ideas?
Hello! I just got unity5 and i straight off went to make a vehicle to test the new physics engine. When i went to start coding the car. I hit Play and the car landed. and it Just went like freakin free-style all over the place...
Any Ideas is to what could of went wrong?
here's my code:
public WheelCollider pivotFL;
public WheelCollider pivotFR;
public WheelCollider pivotRL;
public WheelCollider pivotRR;
public Transform meshFL;
public Transform meshFR;
public Transform meshRL;
public Transform meshRR;
Rigidbody car;
void Start()
{
car = GetComponent<Rigidbody>();
}
This is All i did...
Any help is sooo welcome :D Thanks again!
Comment
Answer by Baroque · Mar 31, 2015 at 07:01 AM
Make sure the mass of the Rigidbody
is set to something appropriate: For the standard WheelCollider settings you need a mass of around 1000-2000.