Merge branch 'master' of ooftooft.net:Racesm
This commit is contained in:
@@ -6,7 +6,6 @@ public class CarControl : MonoBehaviour
|
||||
{
|
||||
|
||||
public float motorTorque = 2000;
|
||||
public float brakeTorque = 2000;
|
||||
public float maxSpeed = 20;
|
||||
public float steeringRange = 30;
|
||||
//public float steeringRangeAtMaxSpeed = 10;
|
||||
@@ -22,7 +21,7 @@ public class CarControl : MonoBehaviour
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
void FixedUpdate()
|
||||
{
|
||||
float vInput = Input.GetAxis("Vertical");
|
||||
float hInput = Input.GetAxis("Horizontal");
|
||||
|
||||
Reference in New Issue
Block a user