docs.unity3d.com
    Show / Hide Table of Contents

    Struct CompoundCollider.Child

    A child collider, within the same blob as the compound collider. Warning: This references the collider via a relative offset, so must always be passed by reference.

    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 Child

    Fields

    CompoundFromChild

    The child transform relative to the compound collider.

    Declaration
    public RigidTransform CompoundFromChild
    Field Value
    Type Description
    RigidTransform

    Entity

    The original Entity from a hierarchy that Child is associated with, which is properly populated in Baking time. If creating a CompoundCollider in the code, you can set this field to any value you want and interpret it the way you want to.

    Declaration
    public Entity Entity
    Field Value
    Type Description
    Entity

    Properties

    Collider

    Gets the child collider pointer.

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

    The child collider pointer.

    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