Files
project-tur/Scenes/revolver.tscn
2025-08-30 18:40:29 +02:00

67 lines
2.3 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://bge7npb7b1y6x"]
[ext_resource type="PackedScene" uid="uid://k5auld1jqu12" path="res://Blends/Revolver/revolver.gltf" id="1_wa2bx"]
[ext_resource type="Script" uid="uid://d3174fuibuuyo" path="res://Scripts/revolver.gd" id="2_ncs2m"]
[sub_resource type="Animation" id="Animation_ncs2m"]
resource_name = "cylinder_out"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Cylinder_002:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1.7411),
"update": 0,
"values": [Vector3(0.0429976, 0.542699, 3.97893), Vector3(2.0611, 0.542699, 3.97893)]
}
[sub_resource type="Animation" id="Animation_ldl0s"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Cylinder_002:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0.0429976, 0.542699, 3.97893)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_h5sga"]
_data = {
&"RESET": SubResource("Animation_ldl0s"),
&"cylinder_out": SubResource("Animation_ncs2m")
}
[node name="revolver" node_paths=PackedStringArray("cylinder") instance=ExtResource("1_wa2bx")]
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0)
script = ExtResource("2_ncs2m")
cylinder = NodePath("Cylinder_002")
[node name="Cylinder" parent="." index="0"]
transform = Transform3D(0.232388, 0, 0, 0, -1.0158e-08, -0.232388, 0, 0.232388, -1.0158e-08, 0, 0.0511216, 0.37481)
[node name="Cylinder_002" parent="." index="1"]
transform = Transform3D(0.388665, 1.69891e-08, 0.673188, 0.673188, -2.9426e-08, -0.388665, 1.69891e-08, 0.77733, -2.9426e-08, 0.0429976, 0.542699, 3.97893)
[node name="Cube_002" parent="." index="4"]
transform = Transform3D(-4.37114e-08, 0, 0.564469, 0, 0.0715409, 0, -1, 0, -2.46737e-08, 0, -0.305258, 3.93692)
[node name="Timer" type="Timer" parent="." index="5"]
wait_time = 0.5
one_shot = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="6"]
libraries = {
&"": SubResource("AnimationLibrary_h5sga")
}
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]