interface ActivityPose

Known direct subclasses
BaseActivityPose

The BaseActivityPose is an implementation of ActivityPose interface that wraps a platformAdapter ActivityPose.

Entity

Interface for a spatial Entity.

Known indirect subclasses
ActivityPanelEntity

ActivityPanelEntity creates a spatial panel for embedding an Activity in Android XR.

ActivitySpace

ActivitySpace is an Entity used to track the system-managed pose and boundary of the volume associated with this Spatialized Activity.

AnchorEntity

An AnchorEntity is created to track a Pose relative to some position or surface in the "Real World." Children of this Entity will remain positioned relative to that location in the real world, for the purposes of creating Augmented Reality experiences.

BaseEntity

The BaseEntity is an implementation of Entity interface that wraps a platform entity.

BasePanelEntity

Provides implementations for common Panel functionality.

CameraView

A ActivityPose which tracks a camera's position and view into physical space.

ContentlessEntity

An Entity that itself has no content.

GltfModelEntity

GltfModelEntity is a concrete implementation of Entity that hosts a glTF model.

Head

Head is a ActivityPose used to track the position of the user's head.

PanelEntity

PanelEntity creates a spatial panel in Android XR.

PerceptionSpace

PerceptionSpace is ActivityPose used to track the origin of the space used by ARCore for XR APIs.

StereoSurfaceEntity

StereoSurfaceEntity is a concrete implementation of Entity that hosts a StereoSurface Panel.


Interface for a ActivityPose.

A ActivityPose contains a pose in activity space and it's pose can be transformed into a pose relative to another ActivityPose.

Summary

Public functions

Pose

Returns the activity space pose for this ActivityPose.

Pose
transformPoseTo(pose: Pose, destination: ActivityPose)

Returns a pose relative to this ActivityPose transformed into a pose relative to the destination.

Public functions

getActivitySpacePose

Added in 1.0.0-alpha01
fun getActivitySpacePose(): Pose

Returns the activity space pose for this ActivityPose.

Returns
Pose

Current Pose relative to the activity space root.

transformPoseTo

Added in 1.0.0-alpha01
fun transformPoseTo(pose: Pose, destination: ActivityPose): Pose

Returns a pose relative to this ActivityPose transformed into a pose relative to the destination.

Parameters
pose: Pose

A pose in this ActivityPose's local coordinate space.

destination: ActivityPose

The ActivityPose which the returned pose will be relative to.

Returns
Pose

The pose relative to the destination ActivityPose.