OculusVRUtil

Engine/source/platform/input/oculusVR/oculusVRUtil.cpp

More...

Public Functions

calculateAxisRotation(const MatrixF & inRotation, const F32 & maxAxisRadius, Point2F & outRotation)

Calcualte a sensor's rotation as if it were a thumb stick axis.

convertAcceleration(OVR::Vector3f & inAcceleration, VectorF & outAcceleration)

Convert an OVR sensor's acceleration to Torque 3D vector (in m/s^2)

convertAngularVelocity(OVR::Vector3f & inAngVel, EulerF & outAngVel)

Convert OVR sensor's angular velocity to Torque 3D Euler angles (in radians/s)

convertMagnetometer(OVR::Vector3f & inMagnetometer, VectorF & outMagnetometer)

Convert an OVR sensor's magnetometer reading (direction and field strength) to Torque 3D vector (in Gauss)

convertRotation(const F32 inRotMat, MatrixF & outRotation)

Convert an OVR sensor's rotation to a Torque 3D matrix.

convertRotation(OVR::Quatf & inRotation, EulerF & outRotation)

Convert an OVR sensor's rotation to Torque 3D Euler angles (in radians)

Detailed Description

Public Functions

calculateAxisRotation(const MatrixF & inRotation, const F32 & maxAxisRadius, Point2F & outRotation)

Calcualte a sensor's rotation as if it were a thumb stick axis.

convertAcceleration(OVR::Vector3f & inAcceleration, VectorF & outAcceleration)

Convert an OVR sensor's acceleration to Torque 3D vector (in m/s^2)

convertAngularVelocity(OVR::Vector3f & inAngVel, EulerF & outAngVel)

Convert OVR sensor's angular velocity to Torque 3D Euler angles (in radians/s)

convertMagnetometer(OVR::Vector3f & inMagnetometer, VectorF & outMagnetometer)

Convert an OVR sensor's magnetometer reading (direction and field strength) to Torque 3D vector (in Gauss)

convertRotation(const F32 inRotMat, MatrixF & outRotation)

Convert an OVR sensor's rotation to a Torque 3D matrix.

convertRotation(OVR::Quatf & inRotation, EulerF & outRotation)

Convert an OVR sensor's rotation to Torque 3D Euler angles (in radians)