forked from woofmeow/straywild
fix: restore ocean surface motion
This commit is contained in:
parent
132f3ef288
commit
805885a9f1
4 changed files with 27 additions and 4 deletions
|
|
@ -232,10 +232,13 @@ func _validate_starter_region_surfaces() -> void:
|
|||
assert(is_equal_approx(ocean.position.y, -0.45))
|
||||
var ocean_visual := region.get_node(
|
||||
"WaterBodies/Ocean/VisualWater"
|
||||
) as MeshInstance3D
|
||||
) as WaterSurfaceMotion
|
||||
assert(ocean_visual != null)
|
||||
assert(is_equal_approx(ocean_visual.global_position.y, ocean.position.y))
|
||||
assert(not ocean_visual.is_processing())
|
||||
assert(ocean_visual.is_processing())
|
||||
assert(
|
||||
absf(ocean_visual.global_position.y - ocean.position.y)
|
||||
<= ocean_visual.amplitude + 0.0001
|
||||
)
|
||||
var ocean_shapes := region.get_node(
|
||||
"WaterBodies/Ocean/FishingRegions/OceanFishingRegion"
|
||||
).get_children()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue