- Home /
Question by
Jetzz · Mar 17, 2014 at 05:39 PM ·
javascriptrigidbodycarcars
My car dont move
My car dont move and have rigidbody 1500 and this script
#pragma strict
var wheelFL : WheelCollider;
var wheelFR : WheelCollider;
var wheelRL : WheelCollider;
var wheelRR : WheelCollider;
var maxTorque : float = 50;
var Speed = 10;
function Start () {
}
function Update ()
{
wheelFR.motorTorque * Input.GetAxis ("Vertical") * Speed;
wheelFL.motorTorque * Input.GetAxis ("Vertical") * Speed;
}
Comment
Did you add gas?
Edit The reason this is my answer is that you haven't told us anything about how your scene is set up, what those wheelcolliders are set to, or any information about what you tried.
think about what you're trying to do at lines 14 and 15. you want to make motorTorque equal something, yes? Documentation
Answer by Khafeine · Jul 17, 2020 at 01:47 PM
I'm having the same problem, everything was working fine in 2019.3 but not 2019.4