openvr icon indicating copy to clipboard operation
openvr copied to clipboard

How to get the rotation axis from the matrix obtained by WaitGetPoses

Open qywako opened this issue 9 years ago • 0 comments

vr::VRCompositor()->WaitGetPoses(m_rTrackedDevicePose, vr::k_unMaxTrackedDeviceCount, NULL, 0 ); m_rmat4DevicePose[nDevice] = ConvertSteamVRMatrixToMatrix4( m_rTrackedDevicePose[nDevice].mDeviceToAbsoluteTracking );

我现在要用到手柄的rotation,不知道要怎么转换,有哪位大神知道怎么转换不?

qywako avatar Apr 19 '17 01:04 qywako