PathFollowing:
Filter:
Classes (extension) | Class

PathFollowing
ExtensionExtension

Implementation of the path following steering behaviour
Location: NOT INSTALLED!

Description

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

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

Inherited class methods

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.

Inherited instance methods