I think I fixed the arrow divide by zero issue
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user