Does this look ok in a RealityView?
let provider = WorldTrackingProvider()
var deviceAnchor = provider.queryDeviceAnchor(atTimestamp: CACurrentMediaTime())
var deviceYPos:Float = Float(deviceAnchor?.originFromAnchorTransform[3][2] ?? 0)
One small question, is it possible to make the object hidden by the occlusion to be non-interactable when occlusion is presented and interactable when occlusion hides?
We have some UI over the palm and when I tap on the buttons they trigger that home button. I want to dismiss it for good so when I tap in the palm does not appear.
This doesn't work work because the y for floor and ceiling anchors are 0. It only gives you an x and z but both of them are not de distance between ceiling and floor. Also, from what I know, floor is already at 0,0,0 so the only thing I need is the coordinates of ceiling in world system.
Ty very much, It works perfcet now, before I quearied the device's orientaion and get the yaw to see if I'm in front emisphere or back and make the drag vlaue negative while you are oriented to back, but at 90 degrees the drag vector remained the same and the value was not certain with the cross product is reliable and works fine. Ty again.
I can't use Immersive Space, because I want my app to work together with Virtual Display. Is it possible to bring the virtual display in an immersive space?
Does this look ok in a RealityView?
let provider = WorldTrackingProvider()
var deviceAnchor = provider.queryDeviceAnchor(atTimestamp: CACurrentMediaTime())
var deviceYPos:Float = Float(deviceAnchor?.originFromAnchorTransform[3][2] ?? 0)
One small question, is it possible to make the object hidden by the occlusion to be non-interactable when occlusion is presented and interactable when occlusion hides?
We have some UI over the palm and when I tap on the buttons they trigger that home button. I want to dismiss it for good so when I tap in the palm does not appear.
This doesn't work work because the y for floor and ceiling anchors are 0. It only gives you an x and z but both of them are not de distance between ceiling and floor. Also, from what I know, floor is already at 0,0,0 so the only thing I need is the coordinates of ceiling in world system.
Ty very much, It works perfcet now, before I quearied the device's orientaion and get the yaw to see if I'm in front emisphere or back and make the drag vlaue negative while you are oriented to back, but at 90 degrees the drag vector remained the same and the value was not certain with the cross product is reliable and works fine. Ty again.
I can't use Immersive Space, because I want my app to work together with Virtual Display. Is it possible to bring the virtual display in an immersive space?