public static bool GetPose(ref Vector3 position, ref Quaternion orientation, int markerId) { float[] pos = new float[3]; float[] rot = new float[4]; bool ret = VisionUnityAbstraction.L7_TrackerGetTrackablePose(pos, rot, markerId); if (ret) { position.Set(pos[0], pos[1], pos[2]); orientation.Set(rot[0], rot[1], rot[2], rot[3]); //Debug.Log ("Rot: " + orientation.ToString("F5")); } return(ret); }
public static void GetProjectionMatrix(float[] projMatrix) { VisionUnityAbstraction.L7_TrackerGetProjectionMatrix(projMatrix); }
public static bool StopAR() { return(VisionUnityAbstraction.L7_TrackerStop()); }
public static bool UpdateAR() { return(VisionUnityAbstraction.L7_TrackerUpdate()); }
public static bool InitAR(string[] markerPath, int numMarkers, float[] width, float[] height, int[] markerIds) { return(VisionUnityAbstraction.L7_TrackerStart(markerPath, numMarkers, width, height, markerIds, ServiceManager.Instance.isLandmarkTracking? HARDWARE_MODE : SOFTWARE_MODE)); }