Hi @kallipigous, I'm trying to achieve the same thing and I think I'm quite close but not there yet.
Basically when the drag gesture starts I use worldTrackingProvider.queryDeviceAnchor(atTimestamp: CACurrentMediaTime())?.originFromAnchorTransform to get the initial position of the device.
Then at every gesture update I retrieve the same value, which I use to determine the device offset as let deviceAnchorOffset = deviceAnchorCurrentPosition - deviceAnchorStartPosition.
If I understand correctly, what you are saying is that when deviceAnchorOffset goes above a certain threshold, instead of applying the offset that comes from DragGesture (which has a build-in multiplying factor that can't be controller), you apply the offset from the world space origin - which sounds the same as deviceAnchorOffset. Does this match your approach?
However I think this also assume your harm is stationary and just moving together in sync with your body, isn't it? Otherwise the object would still appear as slipping from your hands.
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags: