implemented hookes law with the suspension

This commit is contained in:
thatTopHatCat
2025-07-12 12:51:27 -04:00
parent f619d05315
commit 722732590b
8 changed files with 74 additions and 9 deletions

8
car.gd Normal file
View File

@@ -0,0 +1,8 @@
class_name Car
extends RigidBody3D
@export var wheels: Array[Wheel]
func _physics_process(_delta: float) -> void:
for wheel: Wheel in wheels:
wheel.apply_forces(self)