docs.unity3d.com
Search Results for

    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.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    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 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 readonly RigidTransform TransformFromChild { get; }
    Property Value
    Type Description
    RigidTransform

    The transform from 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)