Public Member Functions |
Static Public Member Functions |
Public Attributes |
Properties |
Events |
List of all members
NRKernal.NRHMDPoseTracker
Inherits MonoBehaviour.
Public Member Functions | |
void | AutoAdaptTrackingType () |
bool | ChangeTo6Dof (OnTrackingModeChanged OnModeChanged) |
bool | ChangeTo3Dof (OnTrackingModeChanged OnModeChanged) |
bool | ChangeTo0Dof (OnTrackingModeChanged OnModeChanged) |
bool | ChangeTo0DofStable (OnTrackingModeChanged OnModeChanged) |
void | ResetWorldMatrix (bool resetPitch=false) |
Matrix4x4 | GetWorldOffsetMatrixFromNative () |
bool | GetHeadPoseByTimeInUnityWorld (ref Pose headPose, ulong timeStamp) |
Static Public Member Functions | |
static TrackingType | AdaptTrackingType (TrackingType mode) |
Public Attributes | |
bool | TrackingModeAutoAdapt = true |
bool | UseRelative = false |
bool | AutoCacheWorldPose = true |
Camera | leftCamera |
Camera | centerCamera |
Camera | rightCamera |
Properties | |
TrackingType | TrackingMode [get] |
Events | |
static HMDPoseTrackerEvent | OnHMDPoseReady |
static HMDPoseTrackerEvent | OnHMDLostTracking |
static HMDPoseTrackerModeChangeEvent | OnChangeTrackingMode |
static OnWorldPoseResetEvent | OnWorldPoseReset |
Detailed Description
HMDPoseTracker update the informations of pose tracker. This component is used to initialize the camera parameter, update the device posture, In addition, application can change TrackingType through this component.
Member Function Documentation
◆ AdaptTrackingType()
|
static |
Auto adaption for trackingType based on supported feature on current device.
- Returns
- fallback trackingType.
◆ ChangeTo0Dof()
bool NRKernal.NRHMDPoseTracker.ChangeTo0Dof | ( | OnTrackingModeChanged | OnModeChanged | ) |
Change to 0 degree of freedom.
- Parameters
-
OnModeChanged The mode changed call back and return the result.
◆ ChangeTo0DofStable()
bool NRKernal.NRHMDPoseTracker.ChangeTo0DofStable | ( | OnTrackingModeChanged | OnModeChanged | ) |
Change to 3 degree of freedom.
- Parameters
-
OnModeChanged The mode changed call back and return the result.
◆ ChangeTo3Dof()
bool NRKernal.NRHMDPoseTracker.ChangeTo3Dof | ( | OnTrackingModeChanged | OnModeChanged | ) |
Change to 3 degree of freedom.
- Parameters
-
OnModeChanged The mode changed call back and return the result.
◆ ChangeTo6Dof()
bool NRKernal.NRHMDPoseTracker.ChangeTo6Dof | ( | OnTrackingModeChanged | OnModeChanged | ) |
Change to 6 degree of freedom.
- Parameters
-
OnModeChanged The mode changed call back and return the result.
◆ GetWorldOffsetMatrixFromNative()
Matrix4x4 NRKernal.NRHMDPoseTracker.GetWorldOffsetMatrixFromNative | ( | ) |
Get the world offset matrix from native.
- Returns
◆ ResetWorldMatrix()
void NRKernal.NRHMDPoseTracker.ResetWorldMatrix | ( | bool | resetPitch = false | ) |
Reset the camera to position:(0,0,0) and yaw orientation, or pitch orientation.
- Parameters
-
resetPitch Whether to reset the pitch direction. if resetPitch is false, reset camera to rotation(x,0,z). Where x&z is the pitch&roll of the HMD device. if resetPitch is true, reset camera to rotation(0,0,z); Where z is the roll of the HMD device.
Property Documentation
◆ TrackingMode
|
get |
Gets the tracking mode.
The tracking mode.