2020-02-03 17:07:43 +01:00
|
|
|
[gd_scene load_steps=6 format=2]
|
2020-01-16 23:14:50 +01:00
|
|
|
|
|
|
|
[ext_resource path="res://demos/AvoidCollisions/Spawner.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://demos/AvoidCollisions/AvoidCollisionsDemo.gd" type="Script" id=2]
|
|
|
|
[ext_resource path="res://demos/AvoidCollisions/Avoider.tscn" type="PackedScene" id=3]
|
2020-02-08 22:40:43 +01:00
|
|
|
[ext_resource path="res://demos/Utils/DemoInterface.tscn" type="PackedScene" id=4]
|
|
|
|
[ext_resource path="res://demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=5]
|
2020-01-16 23:14:50 +01:00
|
|
|
|
2020-02-08 22:40:43 +01:00
|
|
|
[node name="AvoidCollisionsDemo" type="Node"]
|
2020-01-16 23:14:50 +01:00
|
|
|
script = ExtResource( 2 )
|
|
|
|
proximity_radius = 100.0
|
|
|
|
|
2020-02-08 22:40:43 +01:00
|
|
|
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
|
2020-02-03 17:07:43 +01:00
|
|
|
|
2020-01-16 23:14:50 +01:00
|
|
|
[node name="Spawner" type="Node2D" parent="."]
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
avoider_template = ExtResource( 3 )
|
2020-02-03 17:07:43 +01:00
|
|
|
inner_color = Color( 0.235294, 0.639216, 0.439216, 1 )
|
|
|
|
outer_color = Color( 0.560784, 0.870588, 0.364706, 1 )
|
2020-01-16 23:14:50 +01:00
|
|
|
|
2020-02-08 22:40:43 +01:00
|
|
|
[node name="DemoInterface" parent="." instance=ExtResource( 4 )]
|
|
|
|
text_bbcode = "Avoid Collisions Demo
|
2020-01-16 23:14:50 +01:00
|
|
|
Watch each agent try to keep traveling in a particular direction, but prioritize avoiding collisions with other agents."
|