Relative Content

Tag Archive for visionosswift6xcode16

Trouble with DragGesture and Snapping 3D Model to Surface in VisionOS using ARKit

I’ve been working on an app for Vision Pro for about a month with decent progress so far. The goal is to have an MVP ready in about 10 days (I know, tight deadline). However, I’m currently struggling with enabling the user to move a 3D model in ImmersiveSpace using DragGesture, and then snapping it to the nearest surface (wall, floor, ceiling, or table). While the code compiles and runs, the model doesn’t appear, and both the dragging and snapping functionalities fail to work.