docs.unity3d.com
    Show / Hide Table of Contents

    Physics Debug Display

    To visualise Unity Physics, add a Physics Debug Display component. As usual, when working with Entities, a SubScene is necessary when adding the Physics Debug Display component.

    Field Description
    Draw Colliders Displays a solid collider around the object.
    Draw Collider Edges Displays only the edges of the collider.
    Draw Collider AABBs Displays the collider's Axis Aligned Bounding Box (AABB), which is usually used in the broadphase.
    Draw Broadphase Displays the Broadphase expanding the AABB's bodies colliders caused by the collision detection between two bodies. While Draw Collider AABB's does not.
    Draw Mass Properties Displays the mass properties.
    Draw Contacts Displays a visualization of all contacts.
    Draw Collision Events Displays a visualization of all collision events.
    Draw Trigger Events Displays a visualization of all trigger events.
    Draw Joints Displays a visualization of all Joints, with degrees of freedom, constraints, anchor points and axis alignments.

    collider_cast
    Physics Debug Display component.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023