docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Add physics areas to sprite shapes

    To make a sprite shape interact with the 2D Physics Core physics system, add a Physics Area Sprite Shape component to it. Bodies in the 2D Physics Core system can then collide with the sprite shape or detect it as a trigger. The shapes of the physics area follow the outline of the sprite shape as you edit its spline, in the Unity Editor and at runtime.

    The following table lists the pages in this section.

    Topic Description
    Add a Physics Area Sprite Shape component Add a Physics Area Sprite Shape component to a sprite shape, and choose the kind of shapes it creates.
    Optimize physics areas on sprite shapes Keep the physics shapes of a sprite shape fast to rebuild and low in memory use.
    Physics Area Sprite Shape component reference Explore the properties of the Physics Area Sprite Shape component, its callback sources, and the events it sends.
    React to collisions and triggers on a sprite shape Find out which side of the spline a body touches, from a contact or trigger event.

    Additional resources

    • Add a collider to a sprite shape
    • Sprite Shape Controller component reference
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)