69 lines
3.4 KiB
Text
69 lines
3.4 KiB
Text
[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"]
|
|
|
|
[node name="Aircraft" type="Node3D"]
|
|
script = ExtResource("1_l4uib")
|
|
track_platform = true
|
|
|
|
[node name="Mi-2" parent="." instance=ExtResource("1_mrxe8")]
|
|
|
|
[node name="Łopata" parent="Mi-2/Armature/Skeleton3D" index="16"]
|
|
material_override = SubResource("StandardMaterial3D_mrxe8")
|
|
|
|
[node name="AttitudeRoot" type="Node3D" parent="."]
|
|
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
|
|
(Varjo can only do that)"
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.8, 0)
|
|
|
|
[node name="TrackerMountChair" type="Node3D" parent="AttitudeRoot/PilotEyes/PilotFloor"]
|
|
transform = Transform3D(-1, 8.74228e-08, -3.82137e-15, 0, -4.37114e-08, -1, -8.74228e-08, -1, 4.37114e-08, 0.27, 0.4, 0)
|
|
|
|
[node name="ReferenceAxes" parent="AttitudeRoot/PilotEyes/PilotFloor/TrackerMountChair" instance=ExtResource("3_2bi7g")]
|
|
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0)
|
|
|
|
[node name="TrackerMountPlatform" type="Node3D" parent="AttitudeRoot/PilotEyes/PilotFloor"]
|
|
transform = Transform3D(-0.891006, -0.453991, 1.98446e-08, 0, -4.37114e-08, -1, 0.453991, -0.891006, 3.89471e-08, 0.4, 0.5, -0.7)
|
|
|
|
[node name="ReferenceAxes" parent="AttitudeRoot/PilotEyes/PilotFloor/TrackerMountPlatform" instance=ExtResource("3_2bi7g")]
|
|
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0)
|
|
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"
|
|
|
|
[node name="ReferenceAxes" parent="AttitudeRoot/PilotEyes/PilotFloor/XROrigin3D/ViveTracker" instance=ExtResource("3_2bi7g")]
|
|
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="."]
|
|
hostname = "192.168.1.2"
|
|
|
|
[connection signal="use_fallback" from="." to="AttitudeRoot/PilotEyes" method="_on_aircraft_use_fallback"]
|
|
|
|
[editable path="Mi-2"]
|