From c3e7bc62cc3ab1650380b4f5d6c4d1db070e057a Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Wed, 8 Jan 2025 15:35:04 -0700 Subject: [PATCH] Shot curve now has extreme effect --- src/player/shot_setup/shot_setup.gd | 4 ++-- src/player/shot_setup/shot_setup.tscn | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/player/shot_setup/shot_setup.gd b/src/player/shot_setup/shot_setup.gd index edffa8a..fb1ae07 100644 --- a/src/player/shot_setup/shot_setup.gd +++ b/src/player/shot_setup/shot_setup.gd @@ -38,7 +38,7 @@ const BIG_POWER_THRESHOLD := 0.7 const WATER_DAMAGE := 10.0 ## Angle of influence that shot curve has, in radians -const CURVE_INFLUENCE := PI / 16 +const CURVE_INFLUENCE := PI / 3 ## Just enough to make things interesting! const SHOT_OFFSET_X_FACTOR := 20.0 @@ -292,7 +292,7 @@ func take_shot() -> void: print_debug("Shot impulse: ", impulse, "; ", impulse.length(), " N*s") # Curve the curve - var curve := shot_curve * absf(shot_curve) * CURVE_FACTOR + var curve := shot_curve * CURVE_FACTOR # Position where the ball is hit (imparts spin) var offset := ( diff --git a/src/player/shot_setup/shot_setup.tscn b/src/player/shot_setup/shot_setup.tscn index a26f01c..14af001 100644 --- a/src/player/shot_setup/shot_setup.tscn +++ b/src/player/shot_setup/shot_setup.tscn @@ -426,7 +426,6 @@ stream_0/stream = ExtResource("15_fn6g1") [node name="ShotSetup" type="Node3D"] script = ExtResource("1_r6ei4") -perfect_aim = true [node name="BallPoint" type="Node3D" parent="."] unique_name_in_owner = true