Search Unity

Feature Request A simple function to disable a child collider

Discussion in 'Physics for ECS' started by gmentat, Feb 23, 2023.

  1. gmentat

    gmentat

    Joined:
    Nov 12, 2012
    Posts:
    15
    I'm trying to disable a child collider of a dynamic body composed of multiple box colliders.

    It sounds like a simple task, but I haven't found a simple solution yet.

    For example, a body has two meshes and two colliders, each with a PhysicsRenderEntity component (or simply a child of the body GameObject). How do I disable or destroy one of the colliders, along with the associated mesh?
     
  2. JMPM-UNITY

    JMPM-UNITY

    Unity Technologies

    Joined:
    Jun 16, 2021
    Posts:
    93
    Sounds legit feature request. Added to the backlog. Thank you!
     
    gmentat likes this.