From de408bcdbcf9cf173c0629b8471283245cdd5b4a Mon Sep 17 00:00:00 2001 From: yannk Date: Thu, 20 Jan 2022 12:26:15 +0100 Subject: [PATCH] Adding camera with rotation axis --- player.tscn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/player.tscn b/player.tscn index 0c18ae6..8dc2f88 100644 --- a/player.tscn +++ b/player.tscn @@ -15,3 +15,13 @@ height = 2.83965 [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(0.999787, 0, 0, 0, 0.589349, 0, 0, 0, 0.371542, 0, 0.836561, 0) shape = SubResource( "CapsuleShape3D_w6qjk" ) + +[node name="camera_root" type="Node3D" parent="."] + +[node name="horizontal_root" type="Node3D" parent="camera_root"] + +[node name="vertical_root" type="Node3D" parent="camera_root/horizontal_root"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.55554, 0) + +[node name="Camera3D" type="Camera3D" parent="camera_root/horizontal_root/vertical_root"] +transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -2.14563)