Start native apps faster with the Composables CLI ->
Class

TrackedDimensions

A set of boolean flags which determine the dimensions of movement that are tracked.

Source set: Android
public class TrackedDimensions(
    public val isTranslationXTracked: Boolean = false,
    public val isTranslationYTracked: Boolean = false,
    public val isTranslationZTracked: Boolean = false,
    public val isRotationXTracked: Boolean = false,
    public val isRotationYTracked: Boolean = false,
    public val isRotationZTracked: Boolean = false,
)

A set of boolean flags which determine the dimensions of movement that are tracked.

This is intended to be used with a FollowBehavior. These dimensions can be used to control how one entity is follows another. For example, if a dev wants to place a marker on the floor showing a user's position in a room, they might want to track only translationX and translationZ. Possible values are: isTranslationXTracked, isTranslationYTracked, isTranslationZTracked, isRotationXTracked, isRotationYTracked, isRotationZTracked or TrackedDimensions.All.

Functions

copy

Source set: Android
public fun copy(
        isTranslationXTracked: Boolean = this.isTranslationXTracked,
        isTranslationYTracked: Boolean = this.isTranslationYTracked,
        isTranslationZTracked: Boolean = this.isTranslationZTracked,
        isRotationXTracked: Boolean = this.isRotationXTracked,
        isRotationYTracked: Boolean = this.isRotationYTracked,
        isRotationZTracked: Boolean = this.isRotationZTracked,
    ): TrackedDimensions

returns a copy of this object with the given values updated.

Parameters

isTranslationXTracked Whether to track translation along the X axis.
isTranslationYTracked Whether to track translation along the Y axis.
isTranslationZTracked Whether to track translation along the Z axis.
isRotationXTracked Whether to track rotation around the X axis.
isRotationYTracked Whether to track rotation around the Y axis.
isRotationZTracked Whether to track rotation around the Z axis.

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

toString

Source set: Android
override fun toString(): String

Members

Companion

Source set: Android
public companion object

Properties

All

Source set: Android
public val All: TrackedDimensions =
            TrackedDimensions(
                isTranslationXTracked = true,
                isTranslationYTracked = true,
                isTranslationZTracked = true,
                isRotationXTracked = true,
                isRotationYTracked = true,
                isRotationZTracked = true,
            )

TrackedDimensions.ALL is provided as a convenient way to specify all 6 dimensions of a pose.