diff options
Diffstat (limited to '')
-rw-r--r-- | World.gd | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |