summaryrefslogtreecommitdiffstats
path: root/Float.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-22 07:45:09 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-22 07:45:09 -0400
commitf342c55099bbd6af781aab7324340460b6299e98 (patch)
tree84546283b1014312c2e0bc35a964901cb299985b /Float.gd
parentdf3557dc3b04b1fa2f399ea319d8810f37931035 (diff)
downloadgodot_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.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Float.gd b/Float.gd
index 37297e4..77ffa95 100644
--- a/Float.gd
+++ b/Float.gd
@@ -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: