summaryrefslogtreecommitdiffstats
path: root/Float.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Float.gd')
-rw-r--r--Float.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/Float.gd b/Float.gd
index 7855bea..4cf7dda 100644
--- a/Float.gd
+++ b/Float.gd
@@ -5,7 +5,7 @@ var angular_drag = 0.5
func _physics_process(_delta):
var parent = get_parent()
- var water = get_node("/root/Main/Water")
+ var water = get_node("/root/Main/Water/MeshInstance")
#self.global_transform.origin.y = water.height(self.global_transform.origin)
var height = self.global_transform.origin.y
var wave_height = water.height(self.global_transform.origin)