DIFF

class VRDeviceGAME_TEMPLATESource

VRDevice Managed

Derived classes

Part of generic and platform specific devices

All members, including inherited

Methods 14

proto native static VRDevice GetInstance()GAME_TEMPLATE

returns VRDevice instance.

Returns: device instance.

proto native VRStatus GetStatusFlags()GAME_TEMPLATE

returns status flags.

Returns: current device state flags.

proto native owned string GetName()GAME_TEMPLATE

returns device name.

Returns: device brand name.

proto native VRDeviceType GetDeviceType()GAME_TEMPLATE

returns device type.

Returns: device type enum.

proto native void RecenterHeadTracking()GAME_TEMPLATE

Forces immediate head recenter.

Uses the current scene position and orientation as the new camera origin.

proto native vector GetHeadPosition()GAME_TEMPLATE

returns HMD head position .

Returns: position in world space.

proto native vector GetHeadOrientation()GAME_TEMPLATE

returns HMD head orientation.

Returns: Euler angles in device space. (Yaw, Pitch, Roll)

proto native vector GetHandPosition(VRHand hand)GAME_TEMPLATE

returns HMD controller's position.

hand
left/right hand enum.

Returns: position in world space.

proto native vector GetHandOrientation(VRHand hand)GAME_TEMPLATE

returns 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_TEMPLATE

returns HMD Eye's position.

eye
left/right eye enum.

Returns: position in world space.

proto native vector GetEyeOrientation(VREye eye)GAME_TEMPLATE

returns 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_TEMPLATE

Sets 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_TEMPLATE

returns current vr scale.

Returns: the scale amount.

proto external void GetEyeFOV(VREye eye, out float leftTan, out float rightTan, out float upTan, out float downTan)GAME_TEMPLATE

returns current FOV's tangent values.

In VR mode the FOV should be asymmetric.

Returns: tangent values of asymetric FOV.