qywako
qywako
vr::VRCompositor()->WaitGetPoses(m_rTrackedDevicePose, vr::k_unMaxTrackedDeviceCount, NULL, 0 ); m_rmat4DevicePose[nDevice] = ConvertSteamVRMatrixToMatrix4( m_rTrackedDevicePose[nDevice].mDeviceToAbsoluteTracking ); through this method i can get a matrix includes translation, rotation, reflection and so on,but how can i get rotation?
vr::VRCompositor()->WaitGetPoses(m_rTrackedDevicePose, vr::k_unMaxTrackedDeviceCount, NULL, 0 ); m_rmat4DevicePose[nDevice] = ConvertSteamVRMatrixToMatrix4( m_rTrackedDevicePose[nDevice].mDeviceToAbsoluteTracking ); 我现在要用到手柄的rotation,不知道要怎么转换,有哪位大神知道怎么转换不?
In general, the viewpoint position is the position of the helmet relative to the origin. Now I want to change the viewpoint position to the helmet relative to a coordinate...