WVR_InAppRecenter¶
-
WVR_EXPORT void WVR_InAppRecenter(WVR_RecenterType recenterType)
Function to recenter the tracker coordinate system to the current rotation and/or position of the app’s “Virtual World”.
Sets the zero pose for current tracker coordinate system to the current position and rotation of the Virtual World. After WVR_InAppRecenter all WVR_GetSyncPose and WVR_GetPoseState calls that pass WVR_PoseOriginModel as the origin model will be relative to this new zero pose. Take effects until System Recentered or WVR_RecenterType_Disabled.
- Version
- API Level 2
- Parameters
recenterType
: indicates type of recenter in WVR_RecenterType
How to use¶
Here is an example for the function:
#include <wvr/wvr_device.h>
WVR_InAppRecenter(WVR_RecenterType_RotationAndPosition);