PathFollowing:
Filter:
GameLoop/Classes (extension) | Class

PathFollowing
ExtensionExtension

Implementation of the path following steering behaviour

Description

Creates a steering force that moves a vehicle along a series of waypoints forming a path. An example can be found at the QuickStart.

Class Methods

.new

Arguments:

entity

the entity on which the steering force will be applied

path

an instance of Path

seekDistance

Since the path following behavior internally uses a combination of arrive and seek behaviours the seekDistance argument defines how close to the target the arrive should change to seek for the next waypoint

Instance Methods

.value

Get the calculated force. To be used in the .force_ method of the entity. This is how the steering forces are applied.