61 lines
1.8 KiB
Text
61 lines
1.8 KiB
Text
[gd_scene load_steps=6 format=3 uid="uid://cpykugh40l23q"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://wpexb31jqpus" path="res://kaykit/medieval/building_windmill_red.fbx" id="1_4px51"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_4px51"]
|
|
script/source = "extends Node3D
|
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
pass
|
|
"
|
|
|
|
[sub_resource type="Animation" id="Animation_8rf6h"]
|
|
length = 0.001
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("building_windmill_red/building_windmill_top_red/building_windmill_top_fan_red:rotation:y")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"handle_modes": PackedInt32Array(0),
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
|
"times": PackedFloat32Array(0)
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_wweoy"]
|
|
resource_name = "rotation"
|
|
length = 3.0
|
|
loop_mode = 1
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("building_windmill_red/building_windmill_top_red/building_windmill_top_fan_red:rotation:y")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"handle_modes": PackedInt32Array(0, 1),
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0, 6.28319, 0, 0, 0, 0),
|
|
"times": PackedFloat32Array(0, 3)
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_tvuvn"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_8rf6h"),
|
|
&"rotation": SubResource("Animation_wweoy")
|
|
}
|
|
|
|
[node name="building_windmill_red" instance=ExtResource("1_4px51")]
|
|
script = SubResource("GDScript_4px51")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." index="1"]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_tvuvn")
|
|
}
|
|
autoplay = "rotation"
|
|
speed_scale = 0.3
|