InputEvent.HitInfo
class InputEvent.HitInfo
Information about the hit result of the input ray, originating from one of the InputEvent.Source, and intersecting with some Entity on the scene.
Summary
Public properties |
|
|---|---|
Vector3? |
The position of the hit in the receiver's activity space. |
Entity |
The |
Matrix4 |
The matrix transforming activity space coordinates into the hit entity's local coordinate space. |
Public constructors
HitInfo
HitInfo(inputEntity: Entity, hitPosition: Vector3?, transform: Matrix4)
| Parameters | |
|---|---|
inputEntity: Entity |
The |
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 (e.g. during a drag event). |
transform: Matrix4 |
The matrix transforming activity space coordinates into the hit entity's local coordinate space. |
Public functions
Public properties
hitPosition
val 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 (e.g. during a drag event).
inputEntity
val 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.
transform
val transform: Matrix4
The matrix transforming activity space coordinates into the hit entity's local coordinate space.