RestPose

enum class RestPose : Enum<RestPose> (source)

Which face of a model rests on the surface it is placed on. The flasher's models are authored Y up with the front facing +Z, so a pitch about X lays the device on its back or front and a roll about Z on a side.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

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

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.

Properties

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Where to put the rotated model so its lowest face touches y = 0 and its footprint centers on the origin.

Link copied to clipboard

The model's bounds once rotated into this pose, before any offset.