godot_boids/examples/boids/2d/follow/example.tscn

26 lines
1006 B
Plaintext
Raw Normal View History

[gd_scene load_steps=4 format=3 uid="uid://ckc0dhvrksfh4"]
2024-08-19 16:53:54 +03:00
[ext_resource type="Script" path="res://examples/boids/2d/follow/example.gd" id="1_cb4mx"]
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
2024-08-29 18:03:10 +03:00
[sub_resource type="FlockProperties" id="FlockProperties_id14j"]
2024-08-19 16:53:54 +03:00
[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-29 18:03:10 +03:00
[node name="Flock" type="Flock2D" parent="." node_paths=PackedStringArray("target")]
properties = SubResource("FlockProperties_id14j")
target = NodePath("../Path2D/PathFollow2D")