Detecting drift

Hi all,

Sometimes while scanning planes (usually early in the session) they start to drift off. I understnad that it can sometimes happen due to various reasons, but has anyone found a nice way to detect it in Unity?
I can see it visually, but how to know in code that its the planes/pointcloud thats drifting and not the user walking away?

You can use ARSession.notTrackingReason to check for limited tracking conditions.