WVR_GetOverlayFixedPosition

WVR_EXPORT WVR_OverlayError WVR_GetOverlayFixedPosition(int32_t overlayId, WVR_OverlayPosition_t * position)

Gets the transform relative to the HMD by position.x, position.y, position.z.

Return
The error code of get transform position.
Version
API Level 1
Parameters
  • overlayId: which overlay should be control.
  • position: which contained the overlay’s translation(x,y,z) relative to HMD.

How to use

Here is an example for the function:

#include <wvr/wvr_overlay.h>
int32_t mOverlayId;

void exampleFun() {
    WVR_GenOverlay(&mOverlayId);
    WVR_OverlayPosition_t position;
    WVR_GetOverlayFixedPosition(mOverlayId, &position);
    WVR_DelOverlay(mOverlayId);
}