[gd_scene load_steps=7 format=2] [ext_resource path="res://assets/entities/railgun/railgun.glb" type="PackedScene" id=1] [ext_resource path="res://scenes/entities/railgun.gd" type="Script" id=2] [sub_resource type="PrismMesh" id=2] [sub_resource type="Skin" id=3] [sub_resource type="SpatialMaterial" id=7] albedo_color = Color( 0.956863, 0.635294, 0.635294, 1 ) [sub_resource type="SphereMesh" id=8] material = SubResource( 7 ) [node name="railgun" instance=ExtResource( 1 )] script = ExtResource( 2 ) [node name="Skeleton" parent="Armature" index="0"] bones/1/rest = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 ) [node name="turretAttachement" type="BoneAttachment" parent="Armature/Skeleton" index="1"] transform = Transform( -1, 0, 1.50996e-07, 0, 1, 0, -1.50996e-07, 0, -1, 0, 2.92139, 0 ) bone_name = "turret head" [node name="TurretEyes" type="Spatial" parent="Armature/Skeleton/turretAttachement" index="0"] transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 ) __meta__ = { "_editor_description_": "Helper Node which gets the rotation to face a target with look_at() to be copied by a bone" } [node name="MeshInstance" type="MeshInstance" parent="Armature/Skeleton/turretAttachement/TurretEyes" index="0"] visible = false mesh = SubResource( 2 ) skin = SubResource( 3 ) [node name="RayCast" type="RayCast" parent="Armature/Skeleton/turretAttachement/TurretEyes" index="1"] transform = Transform( 0.1, -1.50996e-08, -8.74228e-08, -1.50996e-08, -0.1, -4.37114e-08, -8.74228e-09, 4.37114e-09, -1, 0, 0, 0 ) [node name="MeshInstance" type="MeshInstance" parent="Armature/Skeleton/turretAttachement/TurretEyes/RayCast" index="0"] transform = Transform( 1, -8.5412e-22, -1.73472e-18, -2.71051e-20, -4.37114e-09, 70, 7.10543e-15, -0.1, -3.0598e-06, 1.3415e-11, 69.095, 0 ) mesh = SubResource( 8 ) [node name="AnimationPlayer" type="AnimationPlayer" parent="." index="1"] [node name="VertEyes" type="Spatial" parent="." index="2"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 ) __meta__ = { "_editor_description_": "Helper Node which gets the rotation to face a target with look_at() to be copied by a bone" } [node name="MeshInstance" type="MeshInstance" parent="VertEyes" index="0"] mesh = SubResource( 2 ) skin = SubResource( 3 )