FakeActivityPose


open class FakeActivityPose

Known direct subclasses
FakeEntity

Test-only implementation of Entity


Test-only implementation of ActivityPose

Summary

Public constructors

Public functions

open ListenableFuture<HitTestResult>
hitTest(origin: Vector3, direction: Vector3, hitTestFilter: Int)

Creates a hit test at the from the specified origin in the specified direction into the scene.

open Pose
transformPoseTo(pose: Pose, destination: ActivityPose)

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

Public properties

open Pose

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

open Vector3

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

open Vector3

Returns the scale of this ActivityPose.

Public constructors

FakeActivityPose

Added in 1.0.0-alpha04
FakeActivityPose()

Public functions

hitTest

Added in 1.0.0-alpha04
open fun hitTest(origin: Vector3, direction: Vector3, hitTestFilter: Int): ListenableFuture<HitTestResult>

Creates a hit test at the from the specified origin in the specified direction into the scene.

Parameters
origin: Vector3

The translation of the origin of the hit test relative to this ActivityPose.

direction: Vector3

The direction for the hit test ray from the ActivityPose.

hitTestFilter: Int

The scenes that will be in range for the hit test.

Returns
ListenableFuture<HitTestResult>

a {@code ListenableFuture}. The HitResult describes if it hit something and where relative to this ActivityPose. Listeners will be called on the main thread if Runnable::run is supplied.

transformPoseTo

Added in 1.0.0-alpha04
open fun transformPoseTo(pose: Pose, destination: 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: ActivityPose

The entity which the returned pose will be relative to.

Returns
Pose

The pose relative to the destination entity.

Public properties

activitySpacePose

Added in 1.0.0-alpha04
open val activitySpacePosePose

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

activitySpaceScale

Added in 1.0.0-alpha04
open val activitySpaceScaleVector3

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.

worldSpaceScale

Added in 1.0.0-alpha04
open val worldSpaceScaleVector3

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.