diff --git a/levels/debug_level/debug_level.tscn b/levels/debug_level/debug_level.tscn index efd56a2..9ebf1b7 100644 --- a/levels/debug_level/debug_level.tscn +++ b/levels/debug_level/debug_level.tscn @@ -307,7 +307,6 @@ directional_shadow_pancake_size = 5.0 gravity_point_center = Vector3(0, 1, 0) gravity_direction = Vector3(0, 1, 0) script = ExtResource("9_jwlau") -terrain_angular_damping = 2.0 [node name="CollisionPolygon3D" type="CollisionPolygon3D" parent="Course/Fairway"] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 209.788, 6.20358, 256.527) diff --git a/src/equipment/balls/physics_ball/game_ball.gd b/src/equipment/balls/physics_ball/game_ball.gd index 3c33d2c..0719275 100644 --- a/src/equipment/balls/physics_ball/game_ball.gd +++ b/src/equipment/balls/physics_ball/game_ball.gd @@ -130,6 +130,7 @@ func get_surface_snap_point() -> Vector3: ) var collisions := get_world_3d().direct_space_state.intersect_ray(params) if collisions: + @warning_ignore("unsafe_cast") return collisions["position"] as Vector3 return global_position diff --git a/src/world/ball_zone/ball_zone.gd b/src/world/ball_zone/ball_zone.gd index c2e0093..a2270a5 100644 --- a/src/world/ball_zone/ball_zone.gd +++ b/src/world/ball_zone/ball_zone.gd @@ -1,8 +1,6 @@ class_name BallZone extends Area3D ## A spatial area that has an effect on balls inside it. -@export var terrain_angular_damping := 1.0 - @export var water_hazard := false