summaryrefslogtreecommitdiffstats
path: root/World.gd
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-14 23:43:49 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-15 09:16:13 -0400
commit48679e842e85877370c948974b66aa701c0e3bb7 (patch)
tree13ba4cf4ed51b2536a91155fa6917078820738f4 /World.gd
parent0610d7fdcaa15f7b6dc9b3ff03641a1093c01275 (diff)
downloadgodot_wildjam_49-48679e842e85877370c948974b66aa701c0e3bb7.tar.gz
godot_wildjam_49-48679e842e85877370c948974b66aa701c0e3bb7.zip
Reorganize the Main scene and fix the collision layers/masks
Diffstat (limited to 'World.gd')
-rw-r--r--World.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/World.gd b/World.gd
index 09b8e85..c0d224b 100644
--- a/World.gd
+++ b/World.gd
@@ -3,7 +3,8 @@ extends RigidBody
export var acceleration = 10.0;
func travel(direction:Vector3):
- var boat_direction = $"/root/Main/Raft".global_transform.basis
+ var boat = $"/root/Main/Raft"
+ var boat_direction = boat.global_transform.basis
boat_direction = Basis(Vector3.UP*boat_direction.get_euler().y)
direction = -direction
direction = boat_direction * direction