generated from krampus/template-godot4
Removed outdated angular damping field from BallZone
This commit is contained in:
parent
115b31568f
commit
ec1bd890f5
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue