JxrPlatformAdapter.ActivityPose


interface JxrPlatformAdapter.ActivityPose

Known direct subclasses
JxrPlatformAdapter.CameraViewActivityPose

Interface for a SceneCore camera view ActivityPose.

JxrPlatformAdapter.Entity

Interface for a SceneCore Entity

JxrPlatformAdapter.HeadActivityPose

Interface for a SceneCore head ActivityPose.

JxrPlatformAdapter.PerceptionSpaceActivityPose

Interface for the perception space ActivityPose.

Known indirect subclasses
JxrPlatformAdapter.ActivityPanelEntity

Interface for a SceneCore ActivityPanel entity.

JxrPlatformAdapter.ActivitySpace

Interface for a SceneCore activity space.

JxrPlatformAdapter.AnchorEntity

Interface for Anchor entity.

JxrPlatformAdapter.GltfEntity

Interface for a SceneCore [GltfEntity].

JxrPlatformAdapter.LoggingEntity

Interface for a SceneCore Entity that only logs the pose.

JxrPlatformAdapter.PanelEntity

Interface for a SceneCore Panel entity

JxrPlatformAdapter.StereoSurfaceEntity

Interface for a surface which images can be rendered into.

JxrPlatformAdapter.SystemSpaceEntity

Interface for a system-controlled SceneCore Entity that defines its own coordinate space.


Interface for a SceneCore ActivityPose

Summary

Public functions

Pose

Returns the pose for this entity, relative to the activity space root.

Vector3

Returns the scale of this WorldPose relative to the activity space.

Vector3

Returns the scale of this ActivityPose.

Pose

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

Public functions

getActivitySpacePose

Added in 1.0.0-alpha01
fun getActivitySpacePose(): Pose

Returns the pose for this entity, relative to the activity space root.

getActivitySpaceScale

Added in 1.0.0-alpha01
fun getActivitySpaceScale(): Vector3

Returns the scale of this WorldPose relative to the activity space. This returns the accumulated scale which includes the parent's scale, but does not include the scale of the activity space itself.

Returns
Vector3

Total [Vector3] scale applied to self and children relative to the activity space.

getWorldSpaceScale

Added in 1.0.0-alpha01
fun getWorldSpaceScale(): Vector3

Returns the scale of this ActivityPose. For base ActivityPoses, the scale is (1,1,1). For entities this returns the accumulated scale. This value includes the parent's scale, and is similar to a ActivitySpace scale.

Returns
Vector3

Total [Vector3] scale applied to self and children.

transformPoseTo

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

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

Parameters
pose: Pose

A pose in this entity's local coordinate space.

destination: JxrPlatformAdapter.ActivityPose

The entity which the returned pose will be relative to.

Returns
Pose

The pose relative to the destination entity.