Reputation: 4838
I’m encountering unexpected behavior with ARKit’s camera.transform property when I compute the camera’s up vector. I’m extracting the up vector using the following code:
let cameraUp = simd_make_float3(frame.camera.transform.columns.1)
I expected that tilting the device in any direction (forward/backward or left/right) would change the up vector’s values. However, I observed the following:
My questions are:
Any insights or explanations would be greatly appreciated.
Upvotes: -1
Views: 17