{!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} Method GetLeafCollider | Unity Physics | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetLeafCollider

    GetLeafCollider(out ChildCollider, Collider*, ColliderKey, RigidTransform, float)

    Get a leaf of a collider hierarchy. Return false if the key is not valid for the collider.

    Declaration
    public static bool GetLeafCollider(out ChildCollider leaf, Collider* root, ColliderKey key, RigidTransform rootTransform, float rootUniformScale = 1)
    Parameters
    Type Name Description
    ChildCollider leaf

    [out] The leaf collider in world space.

    Collider* root

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

    ColliderKey key

    The key identifying the leaf collider.

    RigidTransform rootTransform

    The root transform in world space.

    float rootUniformScale

    (Optional) The root uniform scale.

    Returns
    Type Description
    bool

    True if there is a leaf with the specified collider key, false otherwise.

    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)