FakeXrExtensions.FakeInputEvent.FakeHitInfo


public class FakeXrExtensions.FakeInputEvent.FakeHitInfo


Fake hit info.

Summary

Public constructors

Public methods

@Nullable Vec3

The ray hit position, in the receiver's task coordinate space.

@NonNull Node

The CPM node that was hit.

int

ID of the front-end Impress node within the subspace that was hit.

@NonNull Mat4f

The matrix transforming task node coordinates into the hit CPM node's coordinates.

void
void
void
setSubspaceImpressNodeId(int subspaceImpressNodeId)
void

Public fields

hitPosition

Added in 1.0.0-alpha01
public Vec3 hitPosition

inputNode

Added in 1.0.0-alpha01
public Node inputNode

subspaceImpressNodeId

Added in 1.0.0-alpha01
public int subspaceImpressNodeId

transform

Added in 1.0.0-alpha01
public Mat4f transform

Public constructors

FakeHitInfo

Added in 1.0.0-alpha01
public FakeHitInfo()

Public methods

getHitPosition

Added in 1.0.0-alpha01
public @Nullable Vec3 getHitPosition()

The ray hit position, in the receiver's task coordinate space.

All events may report the current ray's hit position. This can be null if there no longer is a collision between the ray and the input node (eg, during a drag event).

getInputNode

Added in 1.0.0-alpha01
public @NonNull Node getInputNode()

The CPM node that was hit.

ACTION_MOVE, ACTION_UP, and ACTION_CANCEL events will report the same node as was hit during the initial ACTION_DOWN.

getSubspaceImpressNodeId

Added in 1.0.0-alpha01
public int getSubspaceImpressNodeId()

ID of the front-end Impress node within the subspace that was hit. Used by Split-Engine to create a handle to the node with the same entity ID. In case the node doesn't belong to a subspace the value will be 0, i.e., utils::Entity::import(subspaceImpressNodeId).IsNull() == true.

ACTION_MOVE, ACTION_UP, and ACTION_CANCEL events will report the same node id as was hit during the initial ACTION_DOWN.

getTransform

Added in 1.0.0-alpha01
public @NonNull Mat4f getTransform()

The matrix transforming task node coordinates into the hit CPM node's coordinates.

setHitPosition

Added in 1.0.0-alpha01
public void setHitPosition(@Nullable Vec3 hitPosition)

setInputNode

Added in 1.0.0-alpha01
public void setInputNode(@NonNull Node inputNode)

setSubspaceImpressNodeId

Added in 1.0.0-alpha01
public void setSubspaceImpressNodeId(int subspaceImpressNodeId)

setTransform

Added in 1.0.0-alpha01
public void setTransform(@NonNull Mat4f transform)