summaryrefslogtreecommitdiffstats
path: root/Float.gd
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-09-14 03:50:09 -0400
committerMalfurious <m@lfurio.us>2022-09-14 03:50:09 -0400
commit38b247487309ca89bf2d94bb321f12059861db9d (patch)
tree619a3acc15ca7051d5011b2ebaf18284ca1fad72 /Float.gd
parent0d930d5548e4f705cf80f9c2334b804ab1359538 (diff)
downloadgame_jam49-38b247487309ca89bf2d94bb321f12059861db9d.tar.gz
game_jam49-38b247487309ca89bf2d94bb321f12059861db9d.zip
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.
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)