SpeedSelectionStrategy

fun interface SpeedSelectionStrategy<T, P : Position<out P>>(source)

Computes a node's movement length toward a target.

Type Parameters

T

concentration type

P

position type

Inheritors

Functions

Link copied to clipboard
open fun cloneIfNeeded(destination: Node<T>, reaction: NodeReaction<T>): SpeedSelectionStrategy<T, P>

Returns a clone for destination and reaction when the strategy is stateful.

Link copied to clipboard
abstract fun getNodeMovementLength(target: P?): Double

Computes the movement length toward target.