Updating FPS setting to lock to 30. Update cue to ball collision impulse calculations
This commit is contained in:
@@ -21,10 +21,13 @@ func rpc_input(event: String) -> void:
|
||||
if event == "aim_pulse":
|
||||
animation_player.play("aim_pulse")
|
||||
elif event == "aim_release":
|
||||
if animation_player.get_current_animation_position() < 0.2:
|
||||
animation_player.set_current_animation("RESET")
|
||||
return
|
||||
|
||||
# NOTE: Here, 'anim_pos' is used to gague strength of impulse
|
||||
pool_cue_tip.anim_pos = animation_player.get_current_animation_position()
|
||||
cue_shape.set_deferred("disabled", false)
|
||||
|
||||
cue_shape.disabled = false
|
||||
cue_kick()
|
||||
|
||||
@rpc("any_peer", "call_remote", "reliable")
|
||||
|
||||
Reference in New Issue
Block a user