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 node to move.
the reaction that contains this action.
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
Functions
This method allows to clone this action on a new node. It may result useful to support runtime creation of nodes with the same reaction programming, e.g. for morphogenesis.
Detects if the move is in absolute or relative coordinates, then calls the correct method on the Environment.