class VRDeviceGAME_TEMPLATESource
VRDevice › Managed
Part of generic and platform specific devices
All members, including inherited
Methods 14
proto native static VRDevice GetInstance()GAME_TEMPLATEreturns VRDevice instance.
Returns: device instance.
proto native VRStatus GetStatusFlags()GAME_TEMPLATEreturns status flags.
Returns: current device state flags.
proto native owned string GetName()GAME_TEMPLATEreturns device name.
Returns: device brand name.
proto native VRDeviceType GetDeviceType()GAME_TEMPLATEreturns device type.
Returns: device type enum.
proto native void RecenterHeadTracking()GAME_TEMPLATEForces immediate head recenter.
Uses the current scene position and orientation as the new camera origin.
proto native vector GetHeadPosition()GAME_TEMPLATEreturns HMD head position .
Returns: position in world space.
proto native vector GetHeadOrientation()GAME_TEMPLATEreturns HMD head orientation.
Returns: Euler angles in device space. (Yaw, Pitch, Roll)
proto native vector GetHandPosition(VRHand hand)GAME_TEMPLATEreturns HMD controller's position.
hand- left/right hand enum.
Returns: position in world space.
proto native vector GetHandOrientation(VRHand hand)GAME_TEMPLATEreturns HMD controller's orientation.
hand- left/right hand enum.
Returns: Euler angles in device space. (Yaw, Pitch, Roll)
proto native vector GetEyePosition(VREye eye)GAME_TEMPLATEreturns HMD Eye's position.
eye- left/right eye enum.
Returns: position in world space.
proto native vector GetEyeOrientation(VREye eye)GAME_TEMPLATEreturns HMD Eye's orientation.
eye- left/right eye enum.
Returns: Euler angles in device space. (Yaw, Pitch, Roll)
proto native void SetScale(float scale)GAME_TEMPLATESets up current vr scale.
All translations will get scaled by this value. With higher scale values will the world around look smaller.
"Warning: The tracking errors will render more visible with high scale."
scale- the scale amount.
proto native float GetScale()GAME_TEMPLATEreturns current vr scale.
Returns: the scale amount.