Package-level declarations

Types

Link copied to clipboard
class HeadTowardRandomDirection<T>(reaction: NodeReaction<T>, environment: Physics2DEnvironment<T>, randomGenerator: RandomGenerator) : AbstractLocalAction<T>

Changes the heading of the node owning this action randomly. The environment must support node heading, hence, be a Physics2DEnvironment.

Link copied to clipboard
class HeadTowardTarget<T> @JvmOverloads constructor(environment: Physics2DEnvironment<T>, reaction: NodeReaction<T>, target: Molecule, angularSpeedDegrees: Double = 360.0) : AbstractLocalAction<T>

Reads the target's absolute coordinates from the target molecule contained in the node owning this action and sets the node's heading accordingly.

Link copied to clipboard
class Spin<T>(reaction: NodeReaction<T>, environment: Physics2DEnvironment<T>, angularSpeedDegrees: Double) : AbstractLocalAction<T>

Spins the node owning this action around itself at angularSpeedDegrees, normalized according to the rate of its reaction.