2024-08-26 11:55:38 +03:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://ckc0dhvrksfh4"]
|
2024-08-19 16:53:54 +03:00
|
|
|
|
2024-08-26 11:55:38 +03:00
|
|
|
[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"]
|
2024-08-19 16:53:54 +03:00
|
|
|
|
|
|
|
[sub_resource type="Curve2D" id="Curve2D_ncwi0"]
|
|
|
|
_data = {
|
|
|
|
"points": PackedVector2Array(69.2957, 57.9564, -69.2957, -57.9564, 1117, 34, 79.375, -118.433, -79.375, 118.433, 34, 28, -61.7361, -114.653, 61.7361, 114.653, 22, 624, -42.8373, 69.2957, 42.8373, -69.2957, 1126, 622, 66.7758, 73.0754, -66.7758, -73.0754, 1117, 34)
|
|
|
|
}
|
|
|
|
point_count = 5
|
|
|
|
|
|
|
|
[node name="Example" type="Node2D"]
|
|
|
|
script = ExtResource("1_cb4mx")
|
|
|
|
|
|
|
|
[node name="Path2D" type="Path2D" parent="."]
|
|
|
|
curve = SubResource("Curve2D_ncwi0")
|
|
|
|
|
|
|
|
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
|
|
|
|
position = Vector2(1117, 34)
|
|
|
|
rotation = -2.44507
|
2024-08-26 11:55:38 +03:00
|
|
|
|
|
|
|
[node name="Flock" type="Node" parent="." node_paths=PackedStringArray("target")]
|
|
|
|
script = ExtResource("2_i4bjg")
|
|
|
|
target = NodePath("../Path2D/PathFollow2D")
|