docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PhysicsColliderKeyEntityPair

    A buffer element which associates an original Entity with a child collider in a CompoundCollider through the child's ColliderKey.

    This buffer is automatically added during baking to rigid body entities whose colliders are regrouped and baked into a compound collider. It contains one entry per child in the resultant compound collider, associating the original Entity which contained the collider before creation of the compound with the compound's child collider through the child's collider key.

    .
    Implements
    IBufferElementData
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    [InternalBufferCapacity(0)]
    public struct PhysicsColliderKeyEntityPair : IBufferElementData

    Fields

    Entity

    The entity.

    Declaration
    public Entity Entity
    Field Value
    Type Description
    Entity

    Key

    The key.

    Declaration
    public ColliderKey Key
    Field Value
    Type Description
    ColliderKey

    Implements

    IBufferElementData
    In This Article
    Back to top
    Copyright © 2025 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)