HOT ROD!!

This commit is contained in:
magn9775
2024-04-05 11:23:18 +02:00
parent f1e9de348b
commit 8f172daaf3
6 changed files with 803 additions and 406 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");