BaseScenePose
public abstract class BaseScenePose<RtScenePoseType extends ScenePose> implements ScenePose
BaseEntity |
The BaseEntity is an implementation of Entity interface that wraps a platform entity. |
CameraView |
An |
Head |
Head is an |
PerceptionSpace |
PerceptionSpace is an |
ActivityPanelEntity |
ActivityPanelEntity creates a spatial panel for embedding an |
ActivitySpace |
ActivitySpace is an |
AnchorEntity |
An AnchorEntity tracks a |
GltfModelEntity |
GltfModelEntity is a concrete implementation of Entity that hosts a glTF model. |
GroupEntity |
An |
MainPanelEntity |
Represents the main spatialized panel in a |
PanelEntity |
PanelEntity contains an arbitrary 2D Android |
SurfaceEntity |
SurfaceEntity is an |
The BaseScenePose implements the ScenePose interface.
Summary
Protected constructors |
|---|
<RtScenePoseType extends ScenePose> BaseScenePose( |
Public methods |
|
|---|---|
@NonNull Pose |
The current |
HitTestResult |
Perform a hit test from the specified origin in the specified direction into the Scene. |
HitTestResult |
Creates a hit test from the specified origin in the specified direction into the scene. |
@NonNull Pose |
transformPoseTo(@NonNull Pose pose, @NonNull ScenePose destination)Returns a |
Protected constructors
BaseScenePose
protected <RtScenePoseType extends ScenePose> BaseScenePose(
@NonNull RtScenePoseType rtScenePose
)
Public methods
getActivitySpacePose
public @NonNull Pose getActivitySpacePose()
The current Pose relative to the activity space root.
hitTest
public HitTestResult hitTest(@NonNull Vector3 origin, @NonNull Vector3 direction)
Perform a hit test from the specified origin in the specified direction into the Scene.
| Parameters | |
|---|---|
@NonNull Vector3 origin |
The translation of the origin of the hit test relative to this ScenePose. |
@NonNull Vector3 direction |
The direction for the hit test ray from the origin. |
| Returns | |
|---|---|
HitTestResult |
The |
hitTest
public HitTestResult hitTest(
@NonNull Vector3 origin,
@NonNull Vector3 direction,
int hitTestFilter
)
Creates a hit test from the specified origin in the specified direction into the scene.
| Parameters | |
|---|---|
@NonNull Vector3 origin |
The translation of the origin of the hit test relative to this ScenePose. |
@NonNull Vector3 direction |
The direction for the hit test ray from the origin |
int hitTestFilter |
Filter for which scenes to hit test. Hitting other scenes is only allowed for apps with the |
| Returns | |
|---|---|
HitTestResult |
The |
transformPoseTo
public @NonNull Pose transformPoseTo(@NonNull Pose pose, @NonNull ScenePose destination)
Returns a Pose relative to this ScenePose, transformed into a Pose relative to the destination.