Improved dart physics and made a restart button for debugging
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user