From a0967ebe815cd229b69fb9578f2288b95b2ddb28 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Sun, 4 Sep 2022 14:57:56 -0700 Subject: networked machine project. added broken airplane from previous project --- scenes/vehicles/Airplane.tscn | 155 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 scenes/vehicles/Airplane.tscn (limited to 'scenes/vehicles/Airplane.tscn') diff --git a/scenes/vehicles/Airplane.tscn b/scenes/vehicles/Airplane.tscn new file mode 100644 index 0000000..2b46297 --- /dev/null +++ b/scenes/vehicles/Airplane.tscn @@ -0,0 +1,155 @@ +[gd_scene load_steps=14 format=2] + +[ext_resource path="res://scripts/vehicles/Airplane.gd" type="Script" id=1] +[ext_resource path="res://scripts/cameras/plane_armcam.gd" type="Script" id=2] + +[sub_resource type="PhysicsMaterial" id=1] +rough = true + +[sub_resource type="Curve" id=10] +_data = [ Vector2( 0, 0.119632 ), 0.0, 0.0, 0, 0, Vector2( 0.172819, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.823825, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ] + +[sub_resource type="CurveTexture" id=11] +width = 1024 +curve = SubResource( 10 ) + +[sub_resource type="ConvexPolygonShape" id=2] +points = PoolVector3Array( -1, 1.25, 5, 1, 1.25, -5, 1, 1.25, 5, -1, 1.25, -5, -1, -1.25, 5, 1, -1.25, -5, 1, -1.25, 5, -1, -1.25, -5, 1, 1.25, 5, -1, 1.25, -5, 1, 1.25, -5, -1, 1.25, 5, 1, -1.25, 5, -1, -1.25, -5, 1, -1.25, -5, -1, -1.25, 5, 1, 1.25, 5, -1, -1.25, 5, -1, 1.25, 5, 1, -1.25, 5, 1, 1.25, -5, -1, -1.25, -5, -1, 1.25, -5, 1, -1.25, -5 ) + +[sub_resource type="CubeMesh" id=3] +size = Vector3( 2, 2.5, 10 ) + +[sub_resource type="ConvexPolygonShape" id=4] +points = PoolVector3Array( -3.75, 0.75, 1, 3.75, 0.75, -1, 3.75, 0.75, 1, -3.75, 0.75, -1, -3.75, -0.75, 1, 3.75, -0.75, -1, 3.75, -0.75, 1, -3.75, -0.75, -1, 3.75, 0.75, 1, -3.75, 0.75, -1, 3.75, 0.75, -1, -3.75, 0.75, 1, 3.75, -0.75, 1, -3.75, -0.75, -1, 3.75, -0.75, -1, -3.75, -0.75, 1, 3.75, 0.75, 1, -3.75, -0.75, 1, -3.75, 0.75, 1, 3.75, -0.75, 1, 3.75, 0.75, -1, -3.75, -0.75, -1, -3.75, 0.75, -1, 3.75, -0.75, -1 ) + +[sub_resource type="CubeMesh" id=5] +size = Vector3( 7.5, 1.5, 2 ) + +[sub_resource type="BoxShape" id=6] +extents = Vector3( 0.1, 0.7, 0.7 ) + +[sub_resource type="CylinderMesh" id=7] +top_radius = 0.53 +bottom_radius = 0.53 +height = 0.2 + +[sub_resource type="CylinderMesh" id=8] +top_radius = 0.353 +bottom_radius = 0.353 +height = 0.2 +radial_segments = 15 + +[sub_resource type="BoxShape" id=9] +extents = Vector3( 0.724395, 1.80197, 2.26702 ) + +[node name="Airplane" type="VehicleBody" groups=["units"]] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00643909, 0, 0 ) +mass = 275.0 +physics_material_override = SubResource( 1 ) +can_sleep = false +angular_damp = 0.0 +script = ExtResource( 1 ) +roll_curve = SubResource( 11 ) + +[node name="wings" type="CollisionShape" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 2.28666, 0.689653, 0 ) +shape = SubResource( 2 ) + +[node name="MeshInstance" type="MeshInstance" parent="wings"] +mesh = SubResource( 3 ) + +[node name="fuselage" type="CollisionShape" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.562053, 0.213096, 0 ) +shape = SubResource( 4 ) + +[node name="MeshInstance" type="MeshInstance" parent="fuselage"] +mesh = SubResource( 5 ) + +[node name="leftwheel" type="VehicleWheel" parent="."] +transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 3.50873, -1.85594, -2.02883 ) +wheel_radius = 0.53 +wheel_rest_length = 0.1 +wheel_friction_slip = 2.0 +suspension_travel = 0.1 +suspension_stiffness = 200.0 +suspension_max_force = 400000.0 +damping_compression = 0.95 +damping_relaxation = 1.0 + +[node name="Area" type="Area" parent="leftwheel"] +transform = Transform( 1, -1.57356e-28, 0, 0, 1, 0, 0, -6.87825e-36, 1, 0, 0, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="leftwheel/Area"] +shape = SubResource( 6 ) + +[node name="MeshInstance" type="MeshInstance" parent="leftwheel"] +transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 ) +mesh = SubResource( 7 ) + +[node name="rightwheel" type="VehicleWheel" parent="."] +transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 1.57356e-28, -4.37114e-08, 3.50873, -1.85594, 1.83604 ) +wheel_radius = 0.53 +wheel_rest_length = 0.1 +wheel_friction_slip = 2.0 +suspension_travel = 0.1 +suspension_stiffness = 200.0 +suspension_max_force = 400000.0 +damping_compression = 0.95 +damping_relaxation = 1.0 + +[node name="Area" type="Area" parent="rightwheel"] + +[node name="CollisionShape" type="CollisionShape" parent="rightwheel/Area"] +shape = SubResource( 6 ) + +[node name="MeshInstance" type="MeshInstance" parent="rightwheel"] +transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 ) +mesh = SubResource( 7 ) + +[node name="rearwheel" type="VehicleWheel" parent="."] +transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -2.66361, -1.27391, 0 ) +wheel_radius = 0.353 +wheel_rest_length = 0.07 +wheel_friction_slip = 5.0 +suspension_travel = 0.05 +suspension_stiffness = 200.0 +suspension_max_force = 400000.0 +damping_compression = 0.95 +damping_relaxation = 1.0 + +[node name="MeshInstance" type="MeshInstance" parent="rearwheel"] +transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 ) +mesh = SubResource( 8 ) + +[node name="armcam" type="SpringArm" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.22602, 0.452069, 0 ) +spring_length = 15.0 +margin = 0.03 +script = ExtResource( 2 ) + +[node name="ClippedCamera" type="ClippedCamera" parent="armcam"] +current = true +fov = 79.2 +near = 0.12 +far = 8192.0 + +[node name="rightaileron" type="Spatial" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.02201, 0.827813, 5.17292 ) + +[node name="wingcenter" type="Spatial" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.02202, 0.828033, 0 ) + +[node name="leftaileron" type="Spatial" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.02201, 0.827813, -5.21093 ) + +[node name="tail" type="Spatial" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4.3164, 0.456713, 0 ) + +[node name="TugArea" type="Area" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.58015, -0.728266, 0 ) +collision_layer = 131072 +collision_mask = 0 + +[node name="CollisionShape" type="CollisionShape" parent="TugArea"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.47757, 0 ) +shape = SubResource( 9 ) -- cgit v1.2.3