HeadTowardRandomDirection

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

Constructors

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

Properties

Link copied to clipboard
override val reaction: NodeReaction<T>
Link copied to clipboard

Functions

Link copied to clipboard
override fun cloneAction(newReaction: Reaction<T>): Action<T>
Link copied to clipboard
open override fun execute()

Changes the heading of the node randomly.

Link copied to clipboard
open override fun toString(): String