docs.unity3d.com
    Show / Hide Table of Contents

    Struct ChildCollider

    A child/leaf collider.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    Syntax
    public struct ChildCollider

    Constructors

    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(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(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.

    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.

    Fields

    Entity

    The original Entity from a hierarchy that Child is associated with.

    Declaration
    public Entity Entity
    Field Value
    Type Description
    Entity

    Properties

    Collider

    Gets the collider.

    Declaration
    public readonly Collider*Collider { get; }
    Property Value
    Type Description
    Collider*

    The collider.

    TransformFromChild

    The transform of the child collider in whatever space it was queried from.

    Declaration
    public RigidTransform TransformFromChild { get; }
    Property Value
    Type Description
    RigidTransform

    The transform from child.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023