From 38b247487309ca89bf2d94bb321f12059861db9d Mon Sep 17 00:00:00 2001 From: Malfurious Date: Wed, 14 Sep 2022 03:50:09 -0400 Subject: Consolidate water-related assets Stray files are moved into a new directory. The water MeshInstance is made into a new scene, as I will be adding components to it. --- Float.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Float.gd') 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) -- cgit v1.2.3