API reference
API reference
Select your platform
No SDKs available
No versions available

MRUKHit Class

Modifiers: final
Represents the result of a raycast hit against a spatial anchor in the mixed reality environment.

Signature

data class MRUKHit(val hitDistance: Float, val hitPosition: Vector3, val hitNormal: Vector3, val roomAnchorUuid: UUID, val sceneAnchorUuid: UUID)

Constructors

MRUKHit ( hitDistance , hitPosition , hitNormal , roomAnchorUuid , sceneAnchorUuid )
Signature
constructor(hitDistance: Float, hitPosition: Vector3, hitNormal: Vector3, roomAnchorUuid: UUID, sceneAnchorUuid: UUID)
Parameters
hitDistance: Float
  The distance from the ray origin to the hit point
hitPosition: Vector3
  The 3D position where the ray intersected with the anchor
hitNormal: Vector3
  The surface normal vector at the hit point
roomAnchorUuid: UUID
  The unique identifier of the room containing the hit anchor
sceneAnchorUuid: UUID
  The unique identifier of the specific anchor that was hit
Returns

Properties

hitDistance : Float
[Get]
The distance from the ray origin to the hit point
Signature
val hitDistance: Float
hitNormal : Vector3
[Get]
The surface normal vector at the hit point
Signature
val hitNormal: Vector3
hitPosition : Vector3
[Get]
The 3D position where the ray intersected with the anchor
Signature
val hitPosition: Vector3
roomAnchorUuid : UUID
[Get]
The unique identifier of the room containing the hit anchor
Signature
val roomAnchorUuid: UUID
sceneAnchorUuid : UUID
[Get]
The unique identifier of the specific anchor that was hit
Signature
val sceneAnchorUuid: UUID
Did you find this page helpful?