FollowAtDistance
class FollowAtDistance<T>(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, target: Molecule, distance: Double, speed: Double) : AbstractAction<T> (source)
Makes the Node follow a target defined in a Molecule with some speed, but keeping a distance from it.
Parameters
environment
the environment containing the nodes
node
the follower
reaction
the reaction hosting this action
target
molecule from which to read the destination to follow in the form of coordinates or a tuple
distance
the distance to keep from the destination
speed
the maximum speed
Constructors
Link copied to clipboard
constructor(node: Node<T>, reaction: Reaction<T>, environment: Environment<T, Euclidean2DPosition>, target: Molecule, distance: Double, speed: Double)