{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct ColliderKey | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ColliderKey

    An opaque key which packs a path to a specific leaf of a collider hierarchy into a single integer.

    Implements
    IEquatable<ColliderKey>
    IComparable<ColliderKey>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Physics
    Assembly: solution.dll
    Syntax
    public struct ColliderKey : IEquatable<ColliderKey>, IComparable<ColliderKey>

    Constructors

    Name Description
    ColliderKey(uint, uint)

    Constructor.

    Fields

    Name Description
    Empty

    Empty collider key.

    Properties

    Name Description
    Value

    Gets or sets the value.

    Methods

    Name Description
    CompareTo(ColliderKey)

    Compares this ColliderKey object to another to determine their relative ordering.

    Equals(ColliderKey)

    Tests if this ColliderKey is considered equal to another.

    PopSubKey(uint, out uint)

    Extract a sub key from the front of the path. "numSubKeyBits" is the maximum number of bits required to store any value for this sub key. Returns false if the key is empty.

    PushSubKey(uint, uint)

    Append a sub key to the front of the path "numSubKeyBits" is the maximum number of bits required to store any value for this sub key.

    ToString()

    Convert this object into a string representation.

    Operators

    Name Description
    implicit operator ColliderKey(uint)

    Implicit cast that converts the given uint to a ColliderKey.

    implicit operator uint(ColliderKey)

    Implicit cast that converts the given ColliderKey to an uint.

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