[gd_scene load_steps=8 format=3 uid="uid://d4nj7piinyfug"] [ext_resource type="Script" path="res://assets/scripts/vehicles/scout/tank-base.gd" id="1_isgb6"] [ext_resource type="ArrayMesh" uid="uid://bmabm3fx72638" path="res://assets/meshes/scout/body.obj" id="1_v8pu3"] [ext_resource type="ArrayMesh" uid="uid://p0bp1swl0ytq" path="res://assets/meshes/scout/wheel.obj" id="2_4yh6h"] [ext_resource type="ArrayMesh" uid="uid://brkdedx6x0ral" path="res://assets/meshes/scout/turret.obj" id="4_qlrlb"] [ext_resource type="ArrayMesh" uid="uid://dg3d01n2gh18q" path="res://assets/meshes/scout/gun.obj" id="5_ymni4"] [sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_5htdn"] points = PackedVector3Array(1, 0.249958, 2.49971, -1, 0.249958, 2.49971, 0.442639, 0.110577, 2.71994, 1, -0.250026, 2.49971, 1, 0.249958, -2.5, 0.877056, 0.520238, 1.42108, -1, -0.250026, 2.49971, -0.442835, 0.110577, 2.71994, -0.877251, 0.520238, 1.42108, -1, 0.249958, -2.5, 0.442639, -0.110759, 2.71994, 0.492561, -0.650746, 1.62393, 1, -0.250026, -2.5, 0.877056, 0.520238, -2.19291, -1, -0.250026, -2.5, -0.490211, -0.650746, 1.62393, -0.442835, -0.110759, 2.71994, -0.877251, 0.520238, -2.19291, 0.492561, -0.650746, -2.04167, -0.490211, -0.650746, -2.04167) [sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_pmy52"] points = PackedVector3Array(0.749831, 0.274372, -0.000146806, 0.749831, 0, -0.000146806, 0.735442, 0.274372, -0.146388, 0.587881, 0.48824, -0.000146806, 0.735442, 0.274372, 0.146241, 0.735442, 0, 0.146241, 0.735442, 0, -0.146388, 0.576576, 0.48824, -0.11482, 0.692862, 0.274372, -0.28705, 0.543246, 0.48824, -0.225088, 0.576576, 0.48824, 0.114673, 0.543246, 0.48824, 0.224941, 0.692862, 0.274372, 0.286903, 0.692862, 0, 0.286903, 0.692862, 0, -0.28705, 0.62356, 0.274372, -0.416699, 0.488773, 0.48824, -0.32684, 0.488773, 0.48824, 0.326547, 0.62356, 0.274372, 0.416552, 0.62356, 0, 0.416552, 0.62356, 0, -0.416699, 0.530178, 0.274372, -0.530345, 0.415654, 0.48824, -0.415818, 0.415654, 0.48824, 0.415671, 0.530178, 0.274372, 0.530198, 0.530178, 0, 0.530198, 0.530178, 0, -0.530345, 0.416535, 0.274372, -0.623728, 0.32653, 0.48824, -0.488939, 0.32653, 0.48824, 0.488792, 0.416535, 0.274372, 0.623581, 0.416535, 0, 0.623581, 0.416535, 0, -0.623728, 0.224927, 0.48824, -0.543412, 0.286887, 0.274372, -0.693031, 0.224927, 0.48824, 0.543119, 0.286887, 0.274372, 0.692884, 0.286887, 0, 0.692884, 0.286887, 0, -0.693031, 0.146228, 0.274372, -0.735611, 0.11466, 0.48824, -0.576742, 0.11466, 0.48824, 0.576596, 0.146228, 0.274372, 0.735464, 0.146228, 0, 0.735464, 0.146228, 0, -0.735611, -0.000158131, 0.274372, -0.75, -0.000158131, 0.48824, -0.588048, -0.000158131, 0.48824, 0.587901, -0.000158131, 0.274372, 0.75, -0.000158131, 0, 0.75, -0.000158131, 0, -0.75, -0.146397, 0.274372, -0.735611, -0.114829, 0.48824, -0.576742, -0.114829, 0.48824, 0.576596, -0.146397, 0.274372, 0.735464, -0.146397, 0, 0.735464, -0.146397, 0, -0.735611, -0.287057, 0.274372, -0.693031, -0.225096, 0.48824, -0.543412, -0.225096, 0.48824, 0.543119, -0.287057, 0.274372, 0.692884, -0.287057, 0, 0.692884, -0.287057, 0, -0.693031, -0.416704, 0.274372, -0.623728, -0.3267, 0.48824, -0.488939, -0.416704, 0.274372, 0.623581, -0.3267, 0.48824, 0.488792, -0.416704, 0, 0.623581, -0.416704, 0, -0.623728, -0.530348, 0.274372, -0.530345, -0.415823, 0.48824, -0.415818, -0.415823, 0.48824, 0.415671, -0.530348, 0.274372, 0.530198, -0.530348, 0, 0.530198, -0.530348, 0, -0.530345, -0.623729, 0.274372, -0.416699, -0.488943, 0.48824, -0.32684, -0.488943, 0.48824, 0.326547, -0.623729, 0.274372, 0.416552, -0.623729, 0, 0.416552, -0.623729, 0, -0.416699, -0.693031, 0.274372, -0.28705, -0.543415, 0.48824, -0.225088, -0.543415, 0.48824, 0.224941, -0.693031, 0.274372, 0.286903, -0.693031, 0, 0.286903, -0.693031, 0, -0.28705, -0.735611, 0.274372, -0.146388, -0.576745, 0.48824, -0.11482, -0.576745, 0.48824, 0.114673, -0.735611, 0.274372, 0.146241, -0.735611, 0, 0.146241, -0.735611, 0, -0.146388, -0.75, 0.274372, -0.000146806, -0.588051, 0.48824, -0.000146806, -0.75, 0, -0.000146806) [node name="VehicleBody3D" type="VehicleBody3D"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.91666, 0) mass = 5000.0 script = ExtResource("1_isgb6") _steer_speed = 0.5 _steer_limit = 0.5 _engine_force = 3500.0 [node name="body_mesh" type="MeshInstance3D" parent="."] mesh = ExtResource("1_v8pu3") [node name="body_collmesh" type="CollisionShape3D" parent="."] shape = SubResource("ConvexPolygonShape3D_5htdn") [node name="whl_fl" type="VehicleWheel3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -0.934518, 1.28716) use_as_traction = true use_as_steering = true wheel_rest_length = 0.3 suspension_travel = 0.3 suspension_stiffness = 15.0 suspension_max_force = 25000.0 [node name="mesh" type="MeshInstance3D" parent="whl_fl"] mesh = ExtResource("2_4yh6h") [node name="whl_bl" type="VehicleWheel3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, -0.934518, -1.4) use_as_traction = true wheel_rest_length = 0.3 suspension_travel = 0.3 suspension_stiffness = 15.0 suspension_max_force = 20000.0 [node name="mesh" type="MeshInstance3D" parent="whl_bl"] mesh = ExtResource("2_4yh6h") [node name="whl_br" type="VehicleWheel3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, -0.934518, -1.4) use_as_traction = true wheel_rest_length = 0.3 suspension_travel = 0.3 suspension_stiffness = 15.0 suspension_max_force = 20000.0 [node name="mesh" type="MeshInstance3D" parent="whl_br"] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0) mesh = ExtResource("2_4yh6h") [node name="whl_fr" type="VehicleWheel3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, -0.934518, 1.28716) use_as_traction = true use_as_steering = true wheel_rest_length = 0.3 suspension_travel = 0.3 suspension_stiffness = 15.0 suspension_max_force = 25000.0 [node name="mesh" type="MeshInstance3D" parent="whl_fr"] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0) mesh = ExtResource("2_4yh6h") [node name="turret" type="MeshInstance3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.520482, 0) mesh = ExtResource("4_qlrlb") [node name="cannon" type="MeshInstance3D" parent="turret"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.233854, 0) mesh = ExtResource("5_ymni4") [node name="Camera3D" type="Camera3D" parent="turret/cannon"] transform = Transform3D(-1, -4.76139e-08, 7.33189e-08, 0, 0.838671, 0.544639, -8.74228e-08, 0.544639, -0.838671, 0, 1.421, -3.761) [node name="turret_collmesh" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.520482, 0) shape = SubResource("ConvexPolygonShape3D_pmy52")