Function ovr_sys::ovr_TestBoundaryPoint [] [src]

pub unsafe extern "C" fn ovr_TestBoundaryPoint(
    session: ovrSession,
    point: *const ovrVector3f,
    singleBoundaryType: ovrBoundaryType,
    outTestResult: *mut ovrBoundaryTestResult
) -> ovrResult

Tests collision/proximity of a 3D point against the Boundary System.

session Specifies an ovrSession previously returned by ovr_Create.

point 3D point to test.

singleBoundaryType Must be either ovrBoundary_Outer or ovrBoundary_PlayArea to test against out outTestResult Result of collision/proximity test, contains information such as distance and closest point. Returns an ovrResult for which OVR_SUCCESS(result) is false upon error and true upon success. Return values include but aren't limited to: * ovrSuccess: The call succeeded and a result was returned. * ovrSuccess_BoundaryInvalid: The call succeeded but the result is not a valid boundary due to not being set up.

see ovrBoundaryTestResult