Skip to main content

XR8.XrController

Description

XrController provides 6DoF camera tracking and interfaces for configuring tracking.

Functions

FunctionDescription
configureConfigures what processing is performed by XrController (may have performance implications).
hitTestEstimate the 3D position of a point on the camera feed.
pipelineModuleCreates a camera pipeline module that, when installed, receives callbacks on when the camera has started, camera proessing events, and other state changes. These are used to calculate the camera's position.
recenterRepositions the camera to the origin / facing direction specified by updateCameraProjectionMatrix and restart tracking.
updateCameraProjectionMatrixReset the scene's display geometry and the camera's starting position in the scene. The display geometry is needed to properly overlay the position of objects in the virtual scene on top of their corresponding position in the camera image. The starting position specifies where the camera will be placed and facing at the start of a session.