Spin

class Spin<T>(node: Node<T>, reaction: Reaction<T>, environment: Physics2DEnvironment<T>, angularSpeedDegrees: Double) : AbstractAction<T>

Spins a node around itself at angularSpeedDegrees normalized according to the speed of the reaction.

Constructors

Link copied to clipboard
constructor(node: Node<T>, reaction: Reaction<T>, environment: Physics2DEnvironment<T>, angularSpeedDegrees: Double)

Functions

Link copied to clipboard
open override fun cloneAction(node: Node<T>, reaction: Reaction<T>): Spin<T>
Link copied to clipboard
open override fun execute()

Spins the node around itself.

Link copied to clipboard
open override fun getContext(): Context
Link copied to clipboard
@Nonnull
override fun getOutboundDependencies(): ListSet<out Dependency>
Link copied to clipboard
open override fun toString(): String