InputEvent.HitInfo


class InputEvent.HitInfo


Information about the hit result of the ray.

Summary

Public constructors

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

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Vector3?

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

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: Entity, hitPosition: Vector3?, transform: Matrix4)
Parameters
inputEntity: 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.

hitPosition: Vector3?

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).

transform: Matrix4

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

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 inputEntityEntity

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.