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

    Show / Hide Table of Contents

    Constructor ChildCollider

    ChildCollider(Collider*)

    Create from collider.

    Declaration
    public ChildCollider(Collider* collider)
    Parameters
    Type Name Description
    Collider* collider

    [in] If non-null, the collider.

    ChildCollider(Collider*, RigidTransform)

    Create from body.

    Declaration
    public ChildCollider(Collider* collider, RigidTransform transform)
    Parameters
    Type Name Description
    Collider* collider

    [in] If non-null, the collider.

    RigidTransform transform

    The transform.

    ChildCollider(Collider*, RigidTransform, Entity)

    Create from body with Entity indirection.

    Declaration
    public ChildCollider(Collider* collider, RigidTransform transform, Entity entity)
    Parameters
    Type Name Description
    Collider* collider

    [in] If non-null, the collider.

    RigidTransform transform

    The transform.

    Entity entity

    The entity.

    ChildCollider(float3, float3, float3, CollisionFilter, Material)

    Create as triangle, from 3 vertices.

    Declaration
    public ChildCollider(float3 a, float3 b, float3 c, CollisionFilter filter, Material material)
    Parameters
    Type Name Description
    float3 a

    Vertex a.

    float3 b

    Vertex b.

    float3 c

    Vertex c.

    CollisionFilter filter

    Specifies the filter.

    Material material

    The material.

    ChildCollider(float3, float3, float3, float3, CollisionFilter, Material)

    Create as quad, from 4 coplanar vertices.

    Declaration
    public ChildCollider(float3 a, float3 b, float3 c, float3 d, CollisionFilter filter, Material material)
    Parameters
    Type Name Description
    float3 a

    Vertex a.

    float3 b

    Vertex b.

    float3 c

    Vertex c.

    float3 d

    Vertex d.

    CollisionFilter filter

    Specifies the filter.

    Material material

    The material.

    ChildCollider(ChildCollider, ChildCollider)

    Combine a parent ChildCollider with another ChildCollider describing one of its children.

    Declaration
    public ChildCollider(ChildCollider parent, ChildCollider child)
    Parameters
    Type Name Description
    ChildCollider parent

    The parent.

    ChildCollider child

    The child.

    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)