Nearest

Strategy that considers the group steering action (if present) and the nearest non-group steering action, then combines them using a DistanceWeighted strategy.

Parameters

environment

the environment in which the node moves.

node

the owner of the steering action this strategy belongs to.

Type Parameters

T

the concentration type.

Constructors

Link copied to clipboard
constructor(environment: Euclidean2DEnvironment<T>, node: Node<T>)

Functions

Link copied to clipboard

Delegates to steerStrategy after applying filter to actions.

Link copied to clipboard

Computes the absolute target position derived from the provided steering actions.