CognitiveAgentWander
open class CognitiveAgentWander<T>(val environment: Physics2DEnvironment<T>, reaction: NodeReaction<T>, pedestrian: PedestrianProperty<T>, randomGenerator: RandomGenerator, offset: Double, radius: Double) : AbstractSteeringActionWithTarget<T, Euclidean2DPosition, Euclidean2DTransformation> (source)
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
reaction
the reaction executing this action.
pedestrian
the owner of this action.
Type Parameters
T
the concentration type.
Constructors
Link copied to clipboard
constructor(environment: Physics2DEnvironment<T>, reaction: NodeReaction<T>, pedestrian: PedestrianProperty<T>, randomGenerator: RandomGenerator, offset: Double, radius: Double)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the absolute target position this action points to.
Link copied to clipboard
Computes the distance between this action's target and the given node within the provided environment.