API

Interface IWebXRHitResult

Interface defining the babylon result of hit-test

interface IWebXRHitResult {
    inputSource?: any;
    isTransient?: boolean;
    position: Vector3;
    rotationQuaternion: Quaternion;
    transformationMatrix: Matrix;
    xrHitResult: XRHitTestResult;
}

Hierarchy (View Summary)

Index
inputSource?: any

The input source that generated this hit test (if transient)

isTransient?: boolean

Is this a transient hit test

position: Vector3

Position of the hit test result

rotationQuaternion: Quaternion

Rotation of the hit test result

transformationMatrix: Matrix

Transformation matrix that can be applied to a node that will put it in the hit point location

xrHitResult: XRHitTestResult

The native hit test result