You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
3.2 KiB
Plaintext
75 lines
3.2 KiB
Plaintext
[gd_scene load_steps=9 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]
|
|
[ext_resource path="res://scenes/entities/TurretVision.gd" type="Script" id=3]
|
|
|
|
[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 )
|
|
|
|
[sub_resource type="ConvexPolygonShape" id=9]
|
|
points = PoolVector3Array( 0, 0, 0, 1000, 1000, -2000, -1000, -1000, -2000, 1000, -1000, -2000, -1000, 1000, -2000 )
|
|
|
|
[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="Camera" type="Camera" parent="Armature/Skeleton/turretAttachement" index="1"]
|
|
transform = Transform( 1, -4.06819e-08, 2.32835e-07, -2.35538e-08, 0.963022, 0.269424, -2.35186e-07, -0.269424, 0.963022, 1.09829e-06, 4.65912, 7.27367 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="Armature/Skeleton/turretAttachement/Camera" index="0"]
|
|
visible = false
|
|
mesh = SubResource( 2 )
|
|
skin = SubResource( 3 )
|
|
|
|
[node name="TurretVision" type="Area" parent="Armature/Skeleton/turretAttachement" index="2"]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Armature/Skeleton/turretAttachement/TurretVision" index="0"]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 6.23837e-08, 1.04241, 0.413149 )
|
|
shape = SubResource( 9 )
|
|
|
|
[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"]
|
|
visible = false
|
|
mesh = SubResource( 2 )
|
|
skin = SubResource( 3 )
|