diff --git a/project/src/Behaviors/GSTAvoidCollisions.gd b/project/src/Behaviors/GSTAvoidCollisions.gd index f875b25..5389053 100644 --- a/project/src/Behaviors/GSTAvoidCollisions.gd +++ b/project/src/Behaviors/GSTAvoidCollisions.gd @@ -42,6 +42,7 @@ func _calculate_steering(acceleration: GSTTargetAcceleration) -> GSTTargetAccele # Callback for the proximity to call when finding neighbors. Keeps track of every `neighbor` # that was found but only keeps the one the owning agent will most likely collide with. +# virtual func _report_neighbor(neighbor: GSTSteeringAgent) -> bool: var relative_position := neighbor.position - agent.position var relative_velocity := neighbor.linear_velocity - agent.linear_velocity diff --git a/readme.md b/readme.md index a850ee9..3aa2aaf 100644 --- a/readme.md +++ b/readme.md @@ -20,7 +20,7 @@ As a short overview, a character is represented by a steering agent; it stores i ## Manual ## -The various behaviors and types in the toolkit have been gathered into a [Reference](https://github.com/GDQuest/godot-steering-toolkit/wiki/Manual-API-reference-draft) manual. +The various behaviors and types in the toolkit have been gathered into a [Reference](https://github.com/GDQuest/godot-steering-toolkit/wiki) manual. ## Example usage ## @@ -30,6 +30,8 @@ The goal of this class is to show how an agent can chase a player and predict wh Our game will be in 2D and assumed to be a top-down spaceship game. +You can see the demo in action by running the `demos/QuickStartDemo.tscn` scene in Godot. There are other demos there that showcase the various behaviors, and the behavior parameters can be tweaked and changed by changing the demo's root node's parameters. + ```ruby extends KinematicBody2D @@ -206,5 +208,3 @@ func damage(amount: int) -> void: queue_free() ``` - -You can see the demo in action by running the `demos/QuickStartDemo.tscn` scene in Godot. There are other demos there that showcase the various behaviors, and the behavior parameters can be tweaked and changed by changing the demo's root node's parameters.