Add fallback camera with mouse controls
This commit is contained in:
parent
2824f77450
commit
ad4bb45951
6 changed files with 79 additions and 1 deletions
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bj1s0g7ixjw71"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bj1s0g7ixjw71"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cx30pr7kn4c74" path="res://aircraft/aircraft.gd" id="1_l4uib"]
|
||||
[ext_resource type="PackedScene" uid="uid://cux4tju0ovvly" path="res://assets/mi2/Mi-2.glb" id="1_mrxe8"]
|
||||
[ext_resource type="PackedScene" uid="uid://fmygcraoturj" path="res://reference_axes.tscn" id="3_2bi7g"]
|
||||
[ext_resource type="PackedScene" uid="uid://cis4s43ubuynp" path="res://instruments.tscn" id="3_5w717"]
|
||||
[ext_resource type="Script" uid="uid://bt32fse84itrp" path="res://aircraft/fallback_input.gd" id="3_gf6ud"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mrxe8"]
|
||||
|
||||
|
|
@ -22,6 +23,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.4, 0)
|
|||
[node name="PilotEyes" type="Node3D" parent="AttitudeRoot"]
|
||||
editor_description = "Target position for Local XR tracking"
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0.214, -0.7, 1.594)
|
||||
script = ExtResource("3_gf6ud")
|
||||
|
||||
[node name="PilotFloor" type="Node3D" parent="AttitudeRoot/PilotEyes"]
|
||||
editor_description = "Required for floor tracking
|
||||
|
|
@ -44,6 +46,7 @@ visible = false
|
|||
[node name="XROrigin3D" type="XROrigin3D" parent="AttitudeRoot/PilotEyes/PilotFloor"]
|
||||
|
||||
[node name="XRCamera3D" type="XRCamera3D" parent="AttitudeRoot/PilotEyes/PilotFloor/XROrigin3D"]
|
||||
current = true
|
||||
|
||||
[node name="ViveTracker" type="XRController3D" parent="AttitudeRoot/PilotEyes/PilotFloor/XROrigin3D"]
|
||||
tracker = &"/user/vive_tracker_htcx/role/camera"
|
||||
|
|
@ -52,9 +55,14 @@ tracker = &"/user/vive_tracker_htcx/role/camera"
|
|||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0)
|
||||
visible = false
|
||||
|
||||
[node name="FallbackCamera" type="Camera3D" parent="AttitudeRoot/PilotEyes"]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.980955, 0.194234, 0, -0.194234, 0.980955, 0, 0, 0)
|
||||
|
||||
[node name="Instruments" parent="AttitudeRoot" instance=ExtResource("3_5w717")]
|
||||
transform = Transform3D(-0.5, -1.27582e-08, 7.43353e-08, 4.33325e-10, 0.4923, 0.0874084, -7.5421e-08, 0.0874084, -0.4923, 0.00724897, -1.1581, 2.40391)
|
||||
|
||||
[node name="MarshConnector" type="MarshConnector" parent="."]
|
||||
|
||||
[connection signal="use_fallback" from="." to="AttitudeRoot/PilotEyes" method="_on_aircraft_use_fallback"]
|
||||
|
||||
[editable path="Mi-2"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue