[gd_scene load_steps=9 format=2] [ext_resource path="res://scripts/machines/Cannon.gd" type="Script" id=1] [ext_resource path="res://sounds/explode.wav" type="AudioStream" id=2] [ext_resource path="res://meshes/cannon_barrel.tres" type="ArrayMesh" id=3] [ext_resource path="res://meshes/cannon_base.tres" type="ArrayMesh" id=4] [sub_resource type="PhysicsMaterial" id=8] rough = true [sub_resource type="BoxShape" id=1] extents = Vector3( 1, 0.5, 0.5 ) [sub_resource type="BoxShape" id=6] extents = Vector3( 0.2, 0.473253, 0.536751 ) [sub_resource type="CubeMesh" id=7] size = Vector3( 0.4, 0.4, 0.4 ) [node name="Cannon" type="RigidBody"] mass = 3180.0 physics_material_override = SubResource( 8 ) script = ExtResource( 1 ) [node name="CollisionShape" type="CollisionShape" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 ) shape = SubResource( 1 ) [node name="MeshInstance" type="MeshInstance" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.25, 0.125, 0 ) mesh = ExtResource( 4 ) [node name="YawJoint" type="Spatial" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.368354, 0.499951, 0 ) [node name="PitchJoint" type="Spatial" parent="YawJoint"] [node name="Barrel" type="MeshInstance" parent="YawJoint/PitchJoint"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.355227, 0, 0 ) mesh = ExtResource( 3 ) skeleton = NodePath("../..") [node name="Muzzle" type="Spatial" parent="YawJoint/PitchJoint"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 1.30877, 0, 0 ) [node name="explosion_sound" type="AudioStreamPlayer3D" parent="YawJoint/PitchJoint/Muzzle"] stream = ExtResource( 2 ) unit_db = 9.0 [node name="CameraPoint" type="Spatial" parent="YawJoint/PitchJoint"] transform = Transform( -4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.873605, 0.291723, 0.0103165 ) [node name="SteerArea" type="Area" parent="."] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.935472, 0.123637, 0 ) monitoring = false [node name="CollisionShape" type="CollisionShape" parent="SteerArea"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0778996, 0.339775, 0 ) shape = SubResource( 6 ) [node name="MeshInstance" type="MeshInstance" parent="SteerArea"] visible = false mesh = SubResource( 7 )