- Home /
 
 
               Question by 
               GiftedGaming · Apr 12, 2014 at 04:09 AM · 
                cars  
              
 
              Wrote a car script that wont work
Here's the script
 #pragma strict
 var wheelFL : WheelCollider;
 var wheelFR : WheelCollider;
 var wheelRL : WheelCollider;
 var wheelRR : WheelCollider;
 var maxTorque : float  = 50;
 function Start () {
 
 }
 
 function FixedUpdate () {
 wheelRR.motorTorque = maxTorque * Input.GetAxis("Vertical");
 wheelRL.motorTorque = maxTorque * Input.GetAxis("Vertical");
 wheelFL.steerAngle = 10 * Input.GetAxis("Horizontal");
 wheelFR.steerAngle = 10 * Input.GetAxis("Horizontal");
 }
 
              
               Comment
              
 
               
              $$anonymous$$od note: I would reject a question like this. If we have to cajole someone to tell us the very basics - WHAT'S WRONG - why approve it?
Your answer
 
             Follow this Question
Related Questions
Multiple Cars not working 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
JS Enter Exit with NetworkPlayer 1 Answer
Enter/Exit Vehicle Like GTA 3 Answers
Build Problem and Collide Problem 0 Answers