WVR_SetArenaVisible

WVR_EXPORT void WVR_SetArenaVisible(WVR_ArenaVisible config)

Function to set the virtual wall behavior.

In Auto mode, it will show the virtual wall when the HMD is close to the play area boundaries. Force on mode will always show the virtual wall while Force off mode will disable the virtual wall.

There are only AUTO and FORCE ON effective for general Apps. As to FORCE OFF, a Developer Mode bit must be set in Server DB in advance.

Version
API Level 1
Parameters
  • config: The configuration of virtual wall behavior. (refer to WVR_ArenaVisible)

How to use

Here is an example for the function:

#include <wvr/wvr_arena.h>
uint32_t ieConfig = 0; // 0: Auto, 1: Force On, 2: Force Off
WVR_SetArenaVisible(static_cast<WVR_ArenaVisible>(ieConfig));

See also WVR_GetArenaVisible