Creates the shape used to detect collisions between two entities that have collision components.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
A Boolean that you set to
trueto also generate the collision shapes for all descendants of the entity.
Call this method on entities that adopt the
Has protocols to prepare a shape used for collision detection. The method stores the shape in the entity’s
For non-model entities, the method has no effect. Nevertheless, the method is defined for all entities so that you can call it on any entity, and have the calculation propagate recursively to all that entity’s descendants.