FakeXrExtensions.FakeInputEvent.FakeHitInfo


class FakeXrExtensions.FakeInputEvent.FakeHitInfo


Fake hit info.

Summary

Public constructors

Public functions

Vec3?

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

Node

The CPM node that was hit.

Int

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

Mat4f

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

Unit
setHitPosition(hitPosition: Vec3?)
Unit
setInputNode(inputNode: Node)
Unit
setSubspaceImpressNodeId(subspaceImpressNodeId: Int)
Unit
setTransform(transform: Mat4f)

Public constructors

FakeHitInfo

Added in 1.0.0-alpha02
FakeHitInfo()

Public functions

getHitPosition

Added in 1.0.0-alpha02
fun getHitPosition(): Vec3?

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-alpha02
fun getInputNode(): Node

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-alpha02
fun getSubspaceImpressNodeId(): Int

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-alpha02
fun getTransform(): Mat4f

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

setHitPosition

Added in 1.0.0-alpha02
fun setHitPosition(hitPosition: Vec3?): Unit

setInputNode

Added in 1.0.0-alpha02
fun setInputNode(inputNode: Node): Unit

setSubspaceImpressNodeId

Added in 1.0.0-alpha02
fun setSubspaceImpressNodeId(subspaceImpressNodeId: Int): Unit

setTransform

Added in 1.0.0-alpha02
fun setTransform(transform: Mat4f): Unit