Hello, I'm adding a CollisionComponent to an entity in RealityView. CollisionComponent requires that a Mesh must be provided as a reference for collision detection. However, in order to achieve more accurate detection, I hope that this Mesh resource is a geometric shape of a USDZ model. Is there any way to make it happen? Thank you!
Hello @lijiaxu,
CollisionComponent requires a ShapeResource, you can generate a ShapeResource from a static mesh using generateStaticMesh(from:).
You can get the MeshResource of a ModelComponent by accessing the mesh.
--Greg