docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ILeafColliderCollector

    Interface for collecting leaf colliders.

    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    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(uint, MTransform)

    Pops the composite collider from the collector.

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

    Number of composite key bits.

    Math.MTransform worldFromParent

    The world from parent transform.

    PushCompositeCollider(ColliderKeyPath, MTransform, out 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.

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