diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-09-16 07:56:20 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-09-16 07:56:20 -0400 |
commit | f8d1f2dc1bd6356c33d023629fbef27f362c7aa2 (patch) | |
tree | 13b8b0e1a0d29562f66ddb20b1490bb471b4b0f8 /ship | |
parent | 65baf0c396004d2ea36a871824898abc88f5977a (diff) | |
download | game_jam49-f8d1f2dc1bd6356c33d023629fbef27f362c7aa2.tar.gz game_jam49-f8d1f2dc1bd6356c33d023629fbef27f362c7aa2.zip |
Fix both cameras to follow the boat, but ignore its yaw
Diffstat (limited to 'ship')
-rw-r--r-- | ship/ship/ViewPorts.gd | 3 |
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] |