TrackedDimensions

@ExperimentalFollowingSubspaceApi
class TrackedDimensions


A set of boolean flags which determine the dimensions of movement that are tracked, and will be used to update the content.

This is intended to be used with a FollowMode. 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 x and z. Possible values are: isXTracked, isYTracked, isZTracked, isPitchTracked, isYawTracked, isRollTracked, TrackedDimensions.All, or TrackedDimensions.RotationOnly.

Summary

Public companion properties

TrackedDimensions

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

TrackedDimensions

TrackedDimensions.RotationOnly is provided as a convenient way to specify tracking only rotation dimensions (pitch, yaw, roll).

Public constructors

TrackedDimensions(
    isXTracked: Boolean,
    isYTracked: Boolean,
    isZTracked: Boolean,
    isPitchTracked: Boolean,
    isYawTracked: Boolean,
    isRollTracked: Boolean
)

Public functions

TrackedDimensions
copy(
    isXTracked: Boolean,
    isYTracked: Boolean,
    isZTracked: Boolean,
    isPitchTracked: Boolean,
    isYawTracked: Boolean,
    isRollTracked: Boolean
)

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

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Boolean

Whether to track pitch rotation.

Boolean

Whether to track roll rotation.

Boolean

Whether to track translation along the X axis.

Boolean

Whether to track translation along the Y axis.

Boolean

Whether to track yaw rotation.

Boolean

Whether to track translation along the Z axis.

Public companion properties

All

Added in 1.0.0-beta02
val All: TrackedDimensions

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

RotationOnly

Added in 1.0.0-beta02
val RotationOnly: TrackedDimensions

TrackedDimensions.RotationOnly is provided as a convenient way to specify tracking only rotation dimensions (pitch, yaw, roll).

Public constructors

TrackedDimensions

Added in 1.0.0-beta02
TrackedDimensions(
    isXTracked: Boolean = false,
    isYTracked: Boolean = false,
    isZTracked: Boolean = false,
    isPitchTracked: Boolean = false,
    isYawTracked: Boolean = false,
    isRollTracked: Boolean = false
)
Parameters
isXTracked: Boolean = false

Whether to track translation along the X axis.

isYTracked: Boolean = false

Whether to track translation along the Y axis.

isZTracked: Boolean = false

Whether to track translation along the Z axis.

isPitchTracked: Boolean = false

Whether to track pitch rotation.

isYawTracked: Boolean = false

Whether to track yaw rotation.

isRollTracked: Boolean = false

Whether to track roll rotation.

Public functions

copy

Added in 1.0.0-beta02
fun copy(
    isXTracked: Boolean = this.isXTracked,
    isYTracked: Boolean = this.isYTracked,
    isZTracked: Boolean = this.isZTracked,
    isPitchTracked: Boolean = this.isPitchTracked,
    isYawTracked: Boolean = this.isYawTracked,
    isRollTracked: Boolean = this.isRollTracked
): TrackedDimensions

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

Parameters
isXTracked: Boolean = this.isXTracked

Whether to track translation along the X axis.

isYTracked: Boolean = this.isYTracked

Whether to track translation along the Y axis.

isZTracked: Boolean = this.isZTracked

Whether to track translation along the Z axis.

isPitchTracked: Boolean = this.isPitchTracked

Whether to track rotation around the X axis.

isYawTracked: Boolean = this.isYawTracked

Whether to track rotation around the Y axis.

isRollTracked: Boolean = this.isRollTracked

Whether to track rotation around the Z axis.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

isPitchTracked

Added in 1.0.0-beta02
val isPitchTracked: Boolean

Whether to track pitch rotation.

isRollTracked

Added in 1.0.0-beta02
val isRollTracked: Boolean

Whether to track roll rotation.

isXTracked

Added in 1.0.0-beta02
val isXTracked: Boolean

Whether to track translation along the X axis.

isYTracked

Added in 1.0.0-beta02
val isYTracked: Boolean

Whether to track translation along the Y axis.

isYawTracked

Added in 1.0.0-beta02
val isYawTracked: Boolean

Whether to track yaw rotation.

isZTracked

Added in 1.0.0-beta02
val isZTracked: Boolean

Whether to track translation along the Z axis.