sparkygd/demo/aircraft/fixed_wing_aircraft.tscn

107 lines
4.2 KiB
Text
Raw Normal View History

[gd_scene load_steps=14 format=3 uid="uid://dcnk85lpgfq3t"]
[ext_resource type="Script" uid="uid://bddnsq0h2tpf" path="res://scripts/aircraft/nodes/fixed_wing_aircraft.gd" id="1_grgqm"]
[ext_resource type="Resource" uid="uid://dpk3bgq54ajul" path="res://demo/airfoils/symmetric.tres" id="2_og0eu"]
[ext_resource type="Resource" uid="uid://p2i7a806s6gs" path="res://demo/propulsion/electric_motor.tres" id="3_v3vjn"]
[ext_resource type="Script" uid="uid://qjdma7j2qrns" path="res://scripts/aircraft/resources/fixed_wing_aircraft_performance.gd" id="4_8tl6d"]
[ext_resource type="Script" uid="uid://pc3j1c6e1ra7" path="res://scripts/aircraft/nodes/flight_sim_controller.gd" id="5_g0q8o"]
[ext_resource type="Script" uid="uid://ddh4omp23xc58" path="res://scripts/origin/region_transform.gd" id="6_f0486"]
[sub_resource type="Curve" id="Curve_s1s6j"]
_limits = [0.0, 0.5, 0.0, 20.0]
_data = [Vector2(0, 0.5), 0.0, 0.0, 0, 0, Vector2(20, 0), -0.082397, 0.0, 0, 0]
point_count = 2
[sub_resource type="Curve" id="Curve_onvmd"]
_limits = [0.0, 2.0, 0.0, 30.0]
_data = [Vector2(0, 2), 0.0, 0.0, 0, 0, Vector2(30, 0), -0.199316, 0.0, 0, 0]
point_count = 2
[sub_resource type="Curve" id="Curve_oeqrt"]
_limits = [0.0, 0.202247, 0.0, 10.0]
_data = [Vector2(0, 0.202247), 0.0, 0.0, 0, 0, Vector2(10, 0), -0.0393259, 0.0, 0, 0]
point_count = 2
[sub_resource type="Resource" id="Resource_onu7k"]
script = ExtResource("4_8tl6d")
horizontal_surface = ExtResource("2_og0eu")
horizontal_area = 21.8
horizontal_aspect_ratio = 5.83
vertical_surface = ExtResource("2_og0eu")
vertical_area = 5.0
vertical_aspect_ratio = 5.0
propultion = ExtResource("3_v3vjn")
base_thrust = 100000.0
empty_mass = 3463.0
roll_axis = Vector3(0, 0.1, -1)
pitch_power = SubResource("Curve_s1s6j")
yaw_power = SubResource("Curve_oeqrt")
roll_power = SubResource("Curve_onvmd")
metadata/_custom_type_script = "uid://qjdma7j2qrns"
[sub_resource type="SphereShape3D" id="SphereShape3D_u10mr"]
radius = 8.0
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_2wqbq"]
properties/0/path = NodePath("FlightSimController:pitch")
properties/0/spawn = true
properties/0/replication_mode = 2
properties/1/path = NodePath("FlightSimController:yaw")
properties/1/spawn = true
properties/1/replication_mode = 2
properties/2/path = NodePath("FlightSimController:roll")
properties/2/spawn = true
properties/2/replication_mode = 2
properties/3/path = NodePath("FlightSimController:throttle")
properties/3/spawn = true
properties/3/replication_mode = 2
properties/4/path = NodePath("FlightSimController:brake")
properties/4/spawn = true
properties/4/replication_mode = 2
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_grgqm"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 2
properties/1/path = NodePath(".:rotation")
properties/1/spawn = true
properties/1/replication_mode = 2
properties/2/path = NodePath(".:initial_speed")
properties/2/spawn = true
properties/2/replication_mode = 0
properties/3/path = NodePath(".:multiplayer_authority")
properties/3/spawn = true
properties/3/replication_mode = 2
properties/4/path = NodePath(".:velocity")
properties/4/spawn = true
properties/4/replication_mode = 1
[node name="FixedWingAircraft" type="CharacterBody3D" node_paths=PackedStringArray("controller")]
script = ExtResource("1_grgqm")
performance = SubResource("Resource_onu7k")
controller = NodePath("FlightSimController")
initial_speed = 100.0
metadata/_custom_type_script = "uid://bddnsq0h2tpf"
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_u10mr")
[node name="FlightSimController" type="Node" parent="."]
script = ExtResource("5_g0q8o")
pitch_speed = 4.0
yaw_speed = 4.0
roll_speed = 3.0
throttle = 0.5
metadata/_custom_type_script = "uid://pc3j1c6e1ra7"
[node name="RegionTransform" type="Node" parent="." node_paths=PackedStringArray("target")]
script = ExtResource("6_f0486")
target = NodePath("..")
metadata/_custom_type_script = "uid://ddh4omp23xc58"
[node name="InputSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_2wqbq")
[node name="ServerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_grgqm")