This commit is contained in:
magn9775
2024-04-05 14:02:44 +02:00
parent 7e2f7095ca
commit cc1c680bb1
3 changed files with 13 additions and 8 deletions

View File

@@ -51,4 +51,9 @@ public class VehichleControl : MonoBehaviour
Brake();
UpdateWheelMovements();
}
private void Start()
{
GetComponent<Rigidbody>().centerOfMass = CenterOfMass.localPosition;
}
}