summaryrefslogtreecommitdiffstats
path: root/ship
diff options
context:
space:
mode:
authordusoleil <howcansocksbereal@gmail.com>2022-09-16 07:56:20 -0400
committerdusoleil <howcansocksbereal@gmail.com>2022-09-16 07:56:20 -0400
commitf8d1f2dc1bd6356c33d023629fbef27f362c7aa2 (patch)
tree13b8b0e1a0d29562f66ddb20b1490bb471b4b0f8 /ship
parent65baf0c396004d2ea36a871824898abc88f5977a (diff)
downloadgodot_wildjam_49-f8d1f2dc1bd6356c33d023629fbef27f362c7aa2.tar.gz
godot_wildjam_49-f8d1f2dc1bd6356c33d023629fbef27f362c7aa2.zip
Fix both cameras to follow the boat, but ignore its yaw
Diffstat (limited to 'ship')
-rw-r--r--ship/ship/ViewPorts.gd3
1 files changed, 1 insertions, 2 deletions
diff --git a/ship/ship/ViewPorts.gd b/ship/ship/ViewPorts.gd
index 2e8e800..aac098c 100644
--- a/ship/ship/ViewPorts.gd
+++ b/ship/ship/ViewPorts.gd
@@ -11,5 +11,4 @@ func _physics_process(_delta):
for i in self.get_child_count():
var viewport = self.get_child(i)
var cam = viewport.get_node("Camera")
- cam.global_transform = camera_locations[i]
- cam.global_transform = self.global_transform * cam.global_transform
+ cam.global_transform = self.global_transform * camera_locations[i]