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

Seek
ExtensionExtension

Implementation of the seek steering behaviour

Description

The seek steering behavior returns a force that directs an agent toward a target position.

Class Methods

.new

Arguments:

entity

the entity on which the steering force will be applied

targetPos

the position of arrival

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.