Updating FPS setting to lock to 30. Update cue to ball collision impulse calculations

This commit is contained in:
2026-08-16 05:00:05 -05:00
parent 84509a7f03
commit 8094d4066b
10 changed files with 99 additions and 59 deletions

View File

@@ -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")