|
@@ -69,8 +69,7 @@ func _apply_foil_resistance() -> void:
|
|
var foil_position : Vector3 = HorizontalFoil.get_position()
|
|
var foil_position : Vector3 = HorizontalFoil.get_position()
|
|
var horizontal_speed = linear_velocity.dot(transform.basis * Vector3.RIGHT)
|
|
var horizontal_speed = linear_velocity.dot(transform.basis * Vector3.RIGHT)
|
|
var local_foil_force = Vector3.RIGHT * -foil_resistance * horizontal_speed
|
|
var local_foil_force = Vector3.RIGHT * -foil_resistance * horizontal_speed
|
|
- var foil_force = transform.basis * local_foil_force
|
|
|
|
- apply_force(foil_force, foil_position)
|
|
|
|
|
|
+ apply_force(local_foil_force, foil_position)
|
|
|
|
|
|
|
|
|
|
func _apply_lift() -> void:
|
|
func _apply_lift() -> void:
|