ARKIT: Move Object with PanGesture (the right way) : <p>I've been reading plenty of StackOverflow answers on how to move an object by dragging it across the screen. Some use hit tests against .featurePoints some use the gesture translation or just keeping track of the lastPosition of the object. But honestly.. none work the way everyone is expecting it to work. </p>

<p>Hit testing against .featurePoints just makes the object jump all around, because you dont always hit a featurepoint when dragging your finger. I dont understand why everyone keeps suggesting this.</p>

<p>Solutions like this one work: <a href="https://stackoverflow.com/questions/44729610/dragging-scnnode-in-arkit-using-scenekit">Dragging SCNNode in ARKit Using SceneKit</a></p>

<p>But the object doesnt really follow your finger, and the moment you take a few steps or change the angle of the object or the camera.. and try to move the object.. the x,z are all inverted.. and makes total sense to do that. </p>

<p>I really want to move objects as good as the Apple Demo, but I look at the code from Apple... and is insanely weird and overcomplicated I cant even understand a bit. Their technique to move the object so beautifly is not even close to what everyone propose online.
<a href="https://developer.apple.com/documentation/arkit/handling_3d_interaction_and_ui_controls_in_augmented_reality" rel="noreferrer">https://developer.apple.com/documentation/arkit/handling_3d_interaction_and_ui_controls_in_augmented_reality</a></p>

<p>There's gotta be a simpler way to do it. </p>
