From 48679e842e85877370c948974b66aa701c0e3bb7 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Wed, 14 Sep 2022 23:43:49 -0400 Subject: Reorganize the Main scene and fix the collision layers/masks --- World.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'World.gd') 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 -- cgit v1.2.3