docs.unity3d.com
    Show / Hide Table of Contents

    Struct PhysicsConstrainedBodyPair

    A pair of bodies with some constraint between them (either a joint or a motor)

    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 PhysicsConstrainedBodyPair : IComponentData, IQueryTypeParameter

    Constructors

    PhysicsConstrainedBodyPair(Entity, Entity, Boolean)

    Constructor.

    Declaration
    public PhysicsConstrainedBodyPair(Entity entityA, Entity entityB, bool enableCollision)
    Parameters
    Type Name Description
    Entity entityA

    The entity a.

    Entity entityB

    The entity b.

    Boolean enableCollision

    True to enable, false to disable the collision.

    Fields

    EnableCollision

    Specifies whether the two bodies in the pair should generate contact events.

    Declaration
    public int EnableCollision
    Field Value
    Type Description
    Int32

    Properties

    EntityA

    The first entity in the pair.

    Declaration
    [CreateProperty]
    public readonly Entity EntityA { get; }
    Property Value
    Type Description
    Entity

    The entity a.

    EntityB

    The second entity in the pair.

    Declaration
    [CreateProperty]
    public readonly Entity EntityB { get; }
    Property Value
    Type Description
    Entity

    The entity b.

    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