diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-09-22 07:45:09 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-09-22 07:45:09 -0400 |
commit | f342c55099bbd6af781aab7324340460b6299e98 (patch) | |
tree | 84546283b1014312c2e0bc35a964901cb299985b /Float.gd | |
parent | df3557dc3b04b1fa2f399ea319d8810f37931035 (diff) | |
download | godot_wildjam_49-f342c55099bbd6af781aab7324340460b6299e98.tar.gz godot_wildjam_49-f342c55099bbd6af781aab7324340460b6299e98.zip |
Use the root of the Water scene for the Water API
Diffstat (limited to '')
-rw-r--r-- | Float.gd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ onready var inv_gravity = -ProjectSettings.get_setting("physics/3d/default_gravi func _physics_process(_delta): var parent = get_parent() - var water = get_node("/root/Main/Water/MeshInstance") + var water = get_node("/root/Main/Water") var height = self.global_transform.origin.y var wave_height = water.height(self.global_transform.origin) if height < wave_height: |