MagicNStuff/source/_development/ayuroo/heartbeat_effect.tscn

48 lines
1.3 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://b57cpxwxpn40j"]
[ext_resource type="Script" uid="uid://dybhpfhrqsk6y" path="res://_development/ayuroo/heartbeat_effect.gd" id="1_gjfos"]
[ext_resource type="Script" uid="uid://bbwtct3hoxwws" path="res://src/core/vibration_component.gd" id="2_h7kji"]
[sub_resource type="Animation" id="Animation_akavr"]
resource_name = "heartbeat_anim"
loop_mode = 1
tracks/0/type = "method"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("BeatVibration")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"values": [{
"args": [],
"method": &"vibrate"
}, {
"args": [],
"method": &"vibrate"
}]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_5124f"]
_data = {
&"heartbeat_anim": SubResource("Animation_akavr")
}
[node name="HeartbeatEffect" type="Node3D"]
script = ExtResource("1_gjfos")
heartbeat_max_distance = 60.0
falloff = 1.75
[node name="BeatVibration" type="Node" parent="."]
script = ExtResource("2_h7kji")
weak_magnitude = 1.0
strong_magnitude = 1.0
metadata/_custom_type_script = "uid://bbwtct3hoxwws"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_5124f")
}
autoplay = "heartbeat_anim"