HitTestResult
class HitTestResult
Specifies an intersection between a ray and the Scene.
This can be obtained by running ScenePose.hitTest and related methods.
Summary
Nested types |
|---|
object HitTestResult.SurfaceType |
Public constructors |
|---|
HitTestResult( |
Public properties |
|
|---|---|
Float |
the distance from the origin to the hit location. |
Vector3 |
the |
Vector3? |
The normal of the surface of the Entity or surface that was hit, or null if the normal could not be computed. |
Int |
the |
Public constructors
HitTestResult
HitTestResult(
hitPosition: Vector3,
surfaceNormal: Vector3?,
surfaceType: Int,
distance: Float
)
Public functions
Public properties
distance
val distance: Float
the distance from the origin to the hit location.
hitPosition
val hitPosition: Vector3
the Vector3 position of the intersection between a ray and the Scene.
surfaceNormal
val surfaceNormal: Vector3?
The normal of the surface of the Entity or surface that was hit, or null if the normal could not be computed.