@ExperimentalFollowingSubspaceApi
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
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.
Companion Object
Properties
public val All: TrackedDimensions
TrackedDimensions.ALL is provided as a convenient way to specify all 6 dimensions of a pose.