private void HmdPoseDataEvent(HoloeverEmulatorClientSocket.HmdPoseData data) { Loom.QueueOnMainThread((param) => { HoloeverEmulatorClientSocket.TrackingQuat quat = ((HoloeverEmulatorClientSocket.HmdPoseData)param).HeadPose_Pose_Orientation; HoloeverEmulatorClientSocket.TrackingVector3 pos = ((HoloeverEmulatorClientSocket.HmdPoseData)param).HeadPose_Pose_Position; remoteQaut = new Quaternion(quat.x, quat.y, quat.z, quat.w); }, data); }
private void ControllerPoseDataEvent(HoloeverEmulatorClientSocket.ControllerPoseData data) { Loom.QueueOnMainThread((param) => { HoloeverEmulatorClientSocket.ControllerPoseData controllerPoseData = (HoloeverEmulatorClientSocket.ControllerPoseData)param; HoloeverEmulatorClientSocket.TrackingQuat quat = controllerPoseData.right_controller_Pose_Orientation; NxrPlayerCtrl.Instance.EditorRemoteQuat = new Quaternion(quat.x, quat.y, quat.z, quat.w); }, data); }