docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ColliderKeyPath

    Stores a ColliderKey along with the number of bits in it that are used. This is useful for building keys from root to leaf, the bit count shows where to place the child key bits.

    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
    public struct ColliderKeyPath

    Constructors

    ColliderKeyPath(ColliderKey, uint)

    Constructor.

    Declaration
    public ColliderKeyPath(ColliderKey key, uint numKeyBits)
    Parameters
    Type Name Description
    ColliderKey key

    The key.

    uint numKeyBits

    Number of key bits.

    Properties

    Empty

    Gets the empty ColliderKeyPath.

    Declaration
    public static ColliderKeyPath Empty { get; }
    Property Value
    Type Description
    ColliderKeyPath

    The empty ColliderKeyPath.

    Key

    Gets the collider key.

    Declaration
    public ColliderKey Key { get; }
    Property Value
    Type Description
    ColliderKey

    The collider key.

    Methods

    GetLeafKey(ColliderKey)

    Get the collider key for a leaf shape that is a child of the shape referenced by this path.

    Declaration
    public ColliderKey GetLeafKey(ColliderKey leafKeyLocal)
    Parameters
    Type Name Description
    ColliderKey leafKeyLocal

    The local leaf key.

    Returns
    Type Description
    ColliderKey

    The local leaf key.

    PopChildKey(uint)

    Remove the most leafward shape's key from this path.

    Declaration
    public void PopChildKey(uint numChildKeyBits)
    Parameters
    Type Name Description
    uint numChildKeyBits

    Number of child key bits.

    PushChildKey(ColliderKeyPath)

    Append the local key for a child of the shape referenced by this path.

    Declaration
    public void PushChildKey(ColliderKeyPath child)
    Parameters
    Type Name Description
    ColliderKeyPath child

    The child.

    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)