Package-level declarations
Types
Link copied to clipboard
class HeadTowardRandomDirection<T>(node: Node<T>, environment: Physics2DEnvironment<T>, randomGenerator: RandomGenerator) : AbstractAction<T>
Changes the heading of node randomly. The environment must support node heading, hence, be a Physics2DEnvironment.
Link copied to clipboard
class HeadTowardTarget<T> @JvmOverloads constructor(node: Node<T>, environment: Physics2DEnvironment<T>, reaction: Reaction<T>, target: Molecule, angularSpeedDegrees: Double = 360.0) : AbstractAction<T>
Reads the target's absolute coordinates from the target molecule contained in node and sets the node's heading accordingly.