I have a simple SCNNode in ARKit and I am trying to drag it wherever I moved my finger on the phone. Here is my code.
@objc func pan(recognizer :UIGestureR
Had the same issue. Using a SCNTransaction did the trick for me.
@objc private func handlePan(_ gesture: UIPanGestureRecognizer) {
[...]
SCNTransaction.begin()
SCNTransaction.animationDuration = 0
imagePlane.position.x = hitTestResult.localCoordinates.x
imagePlane.position.y = hitTestResult.localCoordinates.y
SCNTransaction.commit()
}