JxrPlatformAdapter.InputEvent.HitInfo


class JxrPlatformAdapter.InputEvent.HitInfo


Info about the hit result of the ray.

Summary

Public constructors

HitInfo(
    inputEntity: JxrPlatformAdapter.Entity?,
    hitPosition: Vector3?,
    transform: Matrix4
)

Public properties

Vector3?

The position of the hit in the receiver's activity space.

JxrPlatformAdapter.Entity?

The entity that was hit by the input ray.

Matrix4

The matrix transforming activity space coordinates into the hit entity's local coordinate space.

Public constructors

HitInfo

Added in 1.0.0-alpha01
HitInfo(
    inputEntity: JxrPlatformAdapter.Entity?,
    hitPosition: Vector3?,
    transform: Matrix4
)
Parameters
inputEntity: JxrPlatformAdapter.Entity?

the entity that was hit by the input ray.

hitPosition: Vector3?

the position of the hit in the receiver's activity space.

transform: Matrix4

the matrix transforming activity space coordinates into the hit entity's local coordinate space.

Public properties

hitPosition

Added in 1.0.0-alpha01
val hitPositionVector3?

The position of the hit in the receiver's activity 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).

inputEntity

Added in 1.0.0-alpha01
val inputEntityJxrPlatformAdapter.Entity?

The entity that was hit by the input ray.

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

transform

Added in 1.0.0-alpha01
val transformMatrix4

The matrix transforming activity space coordinates into the hit entity's local coordinate space.