BodyKind

How a rigid body moves.

Entries

Link copied to clipboard

Never moves: the ground, a wall. Nothing pushes it, and it has no velocity.

Link copied to clipboard

Moves the way forces, contacts and joints push it, and falls under gravity.

Link copied to clipboard

Moves only the way it's told, with its velocity or RigidBodies.moveKinematic, whatever hits it: a lift, a moving platform, a spinning paddle. It pushes dynamic bodies, they never push it.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): BodyKind

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.