Enumeration

PhysicsBodyMode

The ways that a physics body can move in response to physical forces.

Declaration

enum PhysicsBodyMode

Topics

Setting the Physics Body Mode

case `static`

The body never moves.

case kinematic

The user controls body movement.

case dynamic

Forces and collisions control body movement.

Comparing Modes

static func == (PhysicsBodyMode, PhysicsBodyMode) -> Bool

Indicates whether two modes are equal.

static func != (PhysicsBodyMode, PhysicsBodyMode) -> Bool

Indicates whether two modes are not equal.

func hash(into: inout Hasher)

Hashes the essential components of the mode by feeding them into the given hash function.

var hashValue: Int

The hashed value of the mode.

Relationships

Conforms To

See Also

Setting the Mode

var mode: PhysicsBodyMode

The physics body’s mode, indicating how or if it moves.