ConstantDistanceRandomWalk
Walks a fixed distance in a uniformly random direction at the given speed, then repeats the move by selecting a new random direction.
The walker automatically changes direction on impact with obstacles when the provided environment supports obstacle handling.
Parameters
the reaction that contains this action, whose node moves.
the environment containing the node.
the random generator used to pick directions.
the distance to travel before choosing a new direction.
the walking speed.
Type Parameters
the concentration type.
Constructors
Properties
the environment where 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.
The next position to reach, in absolute or relative coordinates depending on isAbsolute.