docs.unity.cn
    Show / Hide Table of Contents

    Interface IOverlapCollector

    Interface for collecting hits from overlap queries.

    Namespace: Unity.Physics
    Syntax
    public interface IOverlapCollector

    Methods

    AddColliderKeys(ColliderKey*, Int32)

    Adds a collider keys to 'count'.

    Declaration
    void AddColliderKeys(ColliderKey*keys, int count)
    Parameters
    Type Name Description
    ColliderKey* keys

    [in,out] If non-null, the collider keys.

    Int32 count

    Number of collider keys.

    AddRigidBodyIndices(Int32*, Int32)

    Adds rigid body indices to the collector.

    Declaration
    void AddRigidBodyIndices(int *indices, int count)
    Parameters
    Type Name Description
    Int32* indices

    [in,out] If non-null, the rigid body indices.

    Int32 count

    Number of indices.

    PopCompositeCollider(UInt32)

    Pops the composite collider described by numCompositeKeyBits.

    Declaration
    void PopCompositeCollider(uint numCompositeKeyBits)
    Parameters
    Type Name Description
    UInt32 numCompositeKeyBits

    Number of composite key bits.

    PushCompositeCollider(ColliderKeyPath)

    Pushes a composite collider.

    Declaration
    void PushCompositeCollider(ColliderKeyPath compositeKey)
    Parameters
    Type Name Description
    ColliderKeyPath compositeKey

    The composite key.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023