I think I fixed the arrow divide by zero issue

This commit is contained in:
2025-06-27 17:38:51 -05:00
parent f6cc2d611e
commit bbf9faa043

View File

@@ -33,7 +33,7 @@ func _physics_process(delta: float) -> void:
pickup_follow(delta)
func arrow_move(delta):
current_speed = clamp(current_speed - (delta * SPEED_DRAIN_RATE),0,1000)
current_speed = clamp(current_speed - (delta * SPEED_DRAIN_RATE),.001,1000)
var applied_gravity = -9.8 * ((start_speed - current_speed) / current_speed)
global_position += global_transform.basis * Vector3(0,applied_gravity,-current_speed) * delta