Generating accurate CollisionComponent

Currently in an app I am working on, we are adding collision shapes/components to objects by using the ShapeResource.generateConvex method to generate the shape from the mesh of our ModelEntity. Unfortunately, this does not result in a totally accurate collision shape. The following example is how the collision component looks currently.

Is there anyway to generate a collision shape that fits the exact bounds of the ModelEntity?

Post not yet marked as solved Up vote post of KylerDev Down vote post of KylerDev
138 views

Replies

In sceneKit, you can just build your physics shapes from other shapes when all else fails. So the couch collision shape could be explained with a few boxes using SCNPhysicsShape(shapes:. I don't think RealityKit has that yet. But I could be wrong.