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