Merge branch 'master' of ooftooft.net:Racesm

This commit is contained in:
2024-04-05 11:25:40 +02:00
11 changed files with 1119 additions and 735 deletions

View File

@@ -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");