CognitiveAgentWander
Produces a wandering steering action that simulates a random walk by targeting points on a circle centered at a given offset from the node and with a given radius.
The node's heading is set randomly and subsequent target points are chosen on a circumference around the heading with the specified offset and radius. The resulting target is constrained by the node's maximum walking distance.
Parameters
the reaction executing this action.
the owner of this action.
Type Parameters
the concentration type.
Constructors
Properties
the physics environment in which the node moves.
The NodeReaction owning this action, hosted by targetNode.
Functions
Creates an equivalent action owned by newReaction, such as a reaction cloned onto a new node. An action targeting the host of its reaction targets the host of newReaction, which must then be a Node; an action targeting any other node keeps its target.
Moves the node according to getNextPosition, in absolute or relative coordinates depending on isAbsolute.
Returns the absolute target position this action points to.
Computes the distance between this action's target and the given node within the provided environment.