public static bool GetInputPose(int playerID, byte device, byte control, ref Vector3 position, ref Quaternion rotation) { var pos = new AXRVector3D(); var rot = new AXRVector4D(); if (ocs_GetInputPose(playerID, device, control, ref pos, ref rot) == false) { return(false); } position = pos.toVector3(); rotation = rot.toQuaternion(); return(true); }
private static extern void ocs_PendInputPose(byte device, byte control, AXRVector3D position, AXRVector4D rotation);
private static extern void ocs_SetCameraOrientation(AXRVector4D rotation, ref int viewNumber);
private static extern bool ocs_GetInputPose(int playerID, byte device, byte control, ref AXRVector3D position, ref AXRVector4D rotation);