metro-rts/godot/GameObjects/ground_goal_marker.tscn

88 lines
2.5 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://btnlq0xajbfit"]
[ext_resource type="PackedScene" uid="uid://d6kgu1fpgkqi" path="res://Assets/Models/movement_marker.glb" id="1_vqtx7"]
[sub_resource type="Goal" id="Goal_nmxy4"]
desired_state_dict = {
"is_at_target": true
}
[sub_resource type="Gradient" id="Gradient_62bs3"]
offsets = PackedFloat32Array(0.996466, 1)
colors = PackedColorArray(0, 1, 0.36277, 1, 1, 1, 1, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_cichh"]
gradient = SubResource("Gradient_62bs3")
width = 128
height = 128
fill = 1
fill_from = Vector2(0.504274, 0.491453)
fill_to = Vector2(0.82906, 0.145299)
[sub_resource type="Animation" id="Animation_sfcxq"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("movement_marker:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector3(0, 0.228122, 0)]
}
[sub_resource type="Animation" id="Animation_d4ff1"]
resource_name = "animate"
length = 3.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("movement_marker:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1, 3),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector3(0, 0.228122, 0), Vector3(0, 0.431749, 0), Vector3(0, 0.228122, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_t7gud"]
_data = {
"RESET": SubResource("Animation_sfcxq"),
"animate": SubResource("Animation_d4ff1")
}
[sub_resource type="GDScript" id="GDScript_mvlku"]
script/source = "extends AnimationPlayer
func _enter_tree():
self.play(\"animate\")
"
[node name="GroundGoalMarker" type="GoalMarker"]
goal = SubResource("Goal_nmxy4")
disable_mode = 1
collision_layer = 0
collision_mask = 0
input_ray_pickable = false
[node name="movement_marker" parent="." instance=ExtResource("1_vqtx7")]
transform = Transform3D(0.705747, 0, 0, 0, 0.705747, 0, 0, 0, 0.705747, 0, 0.234263, 0)
[node name="Decal" type="Decal" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.232787, 0)
size = Vector3(1.5, 1.948, 1.5)
texture_albedo = SubResource("GradientTexture2D_cichh")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
reset_on_save = false
libraries = {
"": SubResource("AnimationLibrary_t7gud")
}
script = SubResource("GDScript_mvlku")