added damping force
This commit is contained in:
4
car.gd
4
car.gd
@@ -6,3 +6,7 @@ extends RigidBody3D
|
||||
func _physics_process(_delta: float) -> void:
|
||||
for wheel: Wheel in wheels:
|
||||
wheel.apply_forces(self)
|
||||
|
||||
##Point argument is in local space
|
||||
func get_velocity_at_point(point: Vector3) -> Vector3:
|
||||
return linear_velocity + angular_velocity.cross(point - center_of_mass)
|
||||
|
||||
Reference in New Issue
Block a user