docs.unity3d.com
    Show / Hide Table of Contents

    Interface ILeafColliderCollector

    Interface for collecting leaf colliders.

    Namespace: Unity.Physics
    Syntax
    public interface ILeafColliderCollector

    Methods

    AddLeaf(ColliderKey, ref ChildCollider)

    Adds a leaf to the collector.

    Declaration
    void AddLeaf(ColliderKey key, ref ChildCollider leaf)
    Parameters
    Type Name Description
    ColliderKey key

    The collider key specifying the leaf.

    ChildCollider leaf

    [in,out] The leaf collider.

    PopCompositeCollider(UInt32, Math.MTransform)

    Pops the composite collider from the collector.

    Declaration
    void PopCompositeCollider(uint numCompositeKeyBits, Math.MTransform worldFromParent)
    Parameters
    Type Name Description
    UInt32 numCompositeKeyBits

    Number of composite key bits.

    Math.MTransform worldFromParent

    The world from parent transform.

    PushCompositeCollider(ColliderKeyPath, Math.MTransform, out Math.MTransform)

    Pushes a composite collider to the collector.

    Declaration
    void PushCompositeCollider(ColliderKeyPath compositeKey, Math.MTransform parentFromComposite, out Math.MTransform worldFromParent)
    Parameters
    Type Name Description
    ColliderKeyPath compositeKey

    The composite key.

    Math.MTransform parentFromComposite

    The parent from composite transform.

    Math.MTransform worldFromParent

    [out] The world from parent transform.

    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