Both SceneKit and ARKit include characters defined as SIMD types. Because ARKit imports SceneKit, the SIMD characters defined in SceneKit are available to both. SIMD types provide parallel computation, so using them can improve the performance of your application update logic. As you have discovered, there is not always a convenient way to convert between a SIMD type and its older equivalent, SceneKit or Core Graphics, so you usually get clean code using SIMD consistently where possible.
Updating any property that affects the node transform also updates its other transform properties. This also applies to local and world coordinates.
The camera ARFrame property describes the deviceโs hardware camera, not the virtual camera used to render the scene. Although I would expect close correspondence, I suppose you polled an ARCamera instance before the SCNCamera instance was updated during the render cycle. If you can, I recommend that you manage these updates from the appropriate delegate methods, as you will know that the relevant data has been updated.
Erik foss
source share