docs.unity.cn
    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
    Generated by DocFX
    on Wednesday, June 21, 2023