RigidBodyMode

Defines the rigid body modes of an object.

Objects without a RigidBodyComponent are considered static by default. Once a RigidBodyComponent is added, the object becomes dynamic by default.

Entries

Link copied to clipboard

Kinematic mode. In this mode, the RigidBodyComponent is unaffected by gravity and does not respond to external forces.

Link copied to clipboard

Dynamic mode. In this mode, the RigidBodyComponent is affected by gravity and responds to external forces.

Properties

Link copied to clipboard
val entries: EnumEntries<RigidBodyMode>

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

Functions

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

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
fun values(): Array<RigidBodyMode>

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