mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-11-14 04:57:19 +01:00
16cc3efb43
Fixes #45
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://Demos/FollowPath/Drawer.gd" type="Script" id=1]
|
|
[ext_resource path="res://Demos/Utils/DemoInterface.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://Demos/FollowPath/PathFollower.gd" type="Script" id=3]
|
|
[ext_resource path="res://Demos/FollowPath/FollowPathDemo.gd" type="Script" id=4]
|
|
[ext_resource path="res://Demos/Utils/BackgroudLayer.tscn" type="PackedScene" id=5]
|
|
[ext_resource path="res://Demos/Utils/CircleDraw.gd" type="Script" id=6]
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
radius = 24.1954
|
|
|
|
[node name="FollowPathDemo" type="Node"]
|
|
script = ExtResource( 4 )
|
|
linear_speed_max = 920.0
|
|
linear_acceleration_max = 3740.0
|
|
deceleration_radius = 200.0
|
|
|
|
[node name="BackgroudLayer" parent="." instance=ExtResource( 5 )]
|
|
|
|
[node name="Drawer" type="Node2D" parent="."]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="PathFollower" type="KinematicBody2D" parent="."]
|
|
position = Vector2( 960, 540 )
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PathFollower"]
|
|
shape = SubResource( 1 )
|
|
script = ExtResource( 6 )
|
|
inner_color = Color( 0.235294, 0.639216, 0.439216, 1 )
|
|
outer_color = Color( 0.560784, 0.870588, 0.364706, 1 )
|
|
stroke = 6.0
|
|
|
|
[node name="DemoInterface" parent="." instance=ExtResource( 2 )]
|
|
text_bbcode = "Follow Path Demo
|
|
Use the mouse to draw a path on screen and watch the [color=lime]green \"Agent\"[/color] follow it to the end."
|