コード例 #1
0
ファイル: EditorDevice.cs プロジェクト: Kong-W/HoloeverMR
 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);
 }
コード例 #2
0
ファイル: EditorDevice.cs プロジェクト: Kong-W/HoloeverMR
 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);
 }