This effect was mentioned in https://developer.apple.com/wwdc24/10153 (the effect is demonstrated at 28:00), in which the demonstration is you can add coordinates by looking somewhere on the ground and clicking., but I don't understand his explanation very well. I hope you can give me a basic solution. I am very grateful for this!
Hey @lijiaxu,
The Incorporating real-world surroundings in an immersive experience Sample Code provides an example of using the SpatialTapGesture
to add a cube to the location tapped.
Let me know if you have specific questions,
Michael