From f8d1f2dc1bd6356c33d023629fbef27f362c7aa2 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Fri, 16 Sep 2022 07:56:20 -0400 Subject: Fix both cameras to follow the boat, but ignore its yaw --- Main.tscn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Main.tscn') diff --git a/Main.tscn b/Main.tscn index 6612a43..b377c9a 100644 --- a/Main.tscn +++ b/Main.tscn @@ -48,9 +48,6 @@ light_color = Color( 0.85098, 0.47451, 0.0352941, 1 ) shadow_enabled = true directional_shadow_blend_splits = true -[node name="fps_controller" parent="." instance=ExtResource( 1 )] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 17, 44 ) - [node name="Ground" type="StaticBody" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -10, 0 ) collision_layer = 4 @@ -150,10 +147,13 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 9.77011, -3.30323, -29.0883 ) [node name="Float14" parent="ShipRigidBody" instance=ExtResource( 4 )] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 9.77011, -3.30323, -49.022 ) +[node name="fps_controller" parent="ShipRigidBody" instance=ExtResource( 1 )] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 17, 44 ) + [node name="CameraPivot" type="Spatial" parent="ShipRigidBody"] [node name="Camera" type="Camera" parent="ShipRigidBody/CameraPivot"] -transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.30045, 0 ) +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 50, 70 ) far = 5000.0 [node name="crates" type="Spatial" parent="."] -- cgit v1.2.3