Draw a physical mesh

In this code: https://developer.apple.com/documentation/visionos/incorporating-real-world-surroundings-in-an-immersive-experience

It contains a physical collision reaction between virtual objects and the real world, which is realized by creating a grid with physical components. However, I don't understand the information in the document very well. Who can give me a solution? Thank you!

Hey @lijiaxu,

Sorry, I'm not sure how to help. Which part of the sample code are you having trouble understanding? What are you trying to accomplish?

Draw a physical mesh
 
 
Q