Improved dart physics and made a restart button for debugging

This commit is contained in:
ced
2026-06-21 13:27:26 -05:00
parent a77cea1b3d
commit ea671c145b
9 changed files with 143 additions and 11 deletions
+3 -3
View File
@@ -70,10 +70,10 @@ func release_drag():
return
dragging = false
gravity_scale = 1.0
linear_damp = 0.0 # reset to whatever your normal dart damping is
gravity_scale = 2
linear_damp = 1.0 # reset to whatever your normal dart damping is
var velocity = calculate_throw_velocity()
var velocity = calculate_throw_velocity() * 1.0
linear_velocity = velocity
# angular_velocity left as-is from physics, or compute your own spin here