mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-12-28 09:47:16 +01:00
d1c87d96b3
* GroupBehaviours Demo: Click on member to see radius * fixed groupbehaviour demo
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://Demos/GroupBehaviors/Member.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://Demos/GroupBehaviors/Spawner.gd" type="Script" id=2]
|
|
[ext_resource path="res://Demos/GroupBehaviors/GroupBehaviorsDemo.gd" type="Script" id=3]
|
|
[ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://Demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=5]
|
|
|
|
|
|
[node name="GroupBehaviorsDemo" type="Node"]
|
|
script = ExtResource( 3 )
|
|
linear_accel_max = 4234.0
|
|
proximity_radius = 158.0
|
|
separation_decay_coefficient = 121500.0
|
|
cohesion_strength = 0.2
|
|
separation_strength = 8.8
|
|
|
|
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
|
|
|
|
[node name="Spawner" type="Node2D" parent="."]
|
|
position = Vector2( 973.261, 528.829 )
|
|
script = ExtResource( 2 )
|
|
member = ExtResource( 1 )
|
|
|
|
[node name="DemoInterface" parent="." instance=ExtResource( 4 )]
|
|
mouse_filter = 2
|
|
text_bbcode = "Group Behavior Demo
|
|
Each of the \"Agents\" are both attempting to stay separated from each other but within reach of their nearest group's center of mass.
|
|
Click on agent to see it's proximity."
|