Sum

A PhysicalSteeringStrategy performing a simple sum of the overall intentional force and the physical ones.

Constructors

Link copied to clipboard
constructor(environment: Physics2DEnvironment<T>, node: Node<T>, nonPhysicalStrategy: SteeringStrategy<T, Euclidean2DPosition>)

Properties

Link copied to clipboard
open override val node: Node<T>

The node to be moved.

Link copied to clipboard

The combination of intentional forces (= steering actions) and computeTarget are delegated to this strategy.

Functions

Link copied to clipboard

Computes the next relative position reached by the node, taking into account both the intentional and the physical forces acting on node (intentional forces = actions).

open override fun computeNextPosition(overallIntentionalForce: Euclidean2DPosition): Euclidean2DPosition

Computes the next relative position reached by the node, given the overall intentional force.

Link copied to clipboard