fix: make follow scene work again

This commit is contained in:
dusk 2024-08-29 18:03:10 +03:00
parent 7432184573
commit 2d617d451b

View File

@ -1,7 +1,6 @@
[gd_scene load_steps=4 format=3 uid="uid://ckc0dhvrksfh4"] [gd_scene load_steps=4 format=3 uid="uid://ckc0dhvrksfh4"]
[ext_resource type="Script" path="res://examples/boids/2d/follow/example.gd" id="1_cb4mx"] [ext_resource type="Script" path="res://examples/boids/2d/follow/example.gd" id="1_cb4mx"]
[ext_resource type="Script" path="res://addons/boids/flock/flock.gd" id="2_i4bjg"]
[sub_resource type="Curve2D" id="Curve2D_ncwi0"] [sub_resource type="Curve2D" id="Curve2D_ncwi0"]
_data = { _data = {
@ -9,6 +8,8 @@ _data = {
} }
point_count = 5 point_count = 5
[sub_resource type="FlockProperties" id="FlockProperties_id14j"]
[node name="Example" type="Node2D"] [node name="Example" type="Node2D"]
script = ExtResource("1_cb4mx") script = ExtResource("1_cb4mx")
@ -19,6 +20,6 @@ curve = SubResource("Curve2D_ncwi0")
position = Vector2(1117, 34) position = Vector2(1117, 34)
rotation = -2.44507 rotation = -2.44507
[node name="Flock" type="Node" parent="." node_paths=PackedStringArray("target")] [node name="Flock" type="Flock2D" parent="." node_paths=PackedStringArray("target")]
script = ExtResource("2_i4bjg") properties = SubResource("FlockProperties_id14j")
target = NodePath("../Path2D/PathFollow2D") target = NodePath("../Path2D/PathFollow2D")