How should I use ARKit setWorldOrigin function?

Hello,

I'm using ARKit simultaneously with a custom SLAM and I'm trying to align ARKit origin with this SLAM. I just saw that the function setWorldOrigin was actually doing this job.

My question is : is it a bad habit to regularly use this function as my custom SLAM refines its own position or should I just use this function once at the beginning?

Thanks

setWorldOrigin(relativeTransform:) (https://developer.apple.com/documentation/arkit/arsession/2942278-setworldorigin) simply applies the relativeTransform to the world origin. You can changes this as frequently as you need to, it should not affect any other parts of ARKit.

How should I use ARKit setWorldOrigin function?
 
 
Q