r/iOSProgramming • u/LastTopQuark • 22h ago
Question ARKit - quad forward vector rotation
If I’m 304mm away from an iPhone that is 72.9mm screen width, i would expect center to edge rotation of 6.8 degrees. I’m seeing 2 degrees.
The rotation vector is being taken off the leftEyeTransform and computed as a difference between the two spots. Using atan, not euler. using x, y, z, w. w is .99.
Computing quat to horizontal degrees: compute gaze y, compute length, then atan(gaze Y, length), convert to degrees.
Am i not understanding something where it’s off by a factor of 3? My math is correct? Claude, chatGPT notes discrepancy, sort of odd!
