To add physics to a sprite GameObject and match the shape of the sprite for collisions, add a Physics Area Sprite component.
Note: This documentation is about using Pose, Area, and Constraint components. To use 2D physics in the Unity Editor using components like the Rigidbody 2D component, refer to 2D physics instead.
To add the component, follow these steps:
Unlike other Physics Area components, the Physics Area Sprite component has no Geometry properties. Instead, the component copies the Custom Physics Outline of a sprite.
To edit the shape the component uses, follow these steps:
If you add multiple shapes but the physics object has fewer shapes than you expect, check the Rejected Shape Count property in the Info section of the Physics Area Sprite component. If Unity rejected shapes, check the custom physics outline for unneeded extra points on a straight line, or points that are too close together.