mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-12-28 09:47:16 +01:00
85784791ec
The agents auto-update themselves and can calculate their velocities. This keeps the user from having to create an update_agent function. It can also save the user from having to keep track of and update velocities at all by using the provided `apply_steering` method. Closes #15, closes #16
18 lines
524 B
Plaintext
18 lines
524 B
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://demos/GroupBehaviors/Member.gd" type="Script" id=1]
|
|
[ext_resource path="res://demos/Utils/CircleDraw.gd" type="Script" id=3]
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
radius = 16.0
|
|
|
|
[node name="Member" type="KinematicBody2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|
|
script = ExtResource( 3 )
|
|
inner_color = Color( 0, 0, 0, 1 )
|
|
outer_color = Color( 0.301961, 0.65098, 1, 1 )
|
|
stroke = 4.0
|