docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PhysicsConstrainedBodyPair

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

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

    Constructors

    PhysicsConstrainedBodyPair(Entity, Entity, bool)

    Constructor.

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

    The entity a.

    Entity entityB

    The entity b.

    bool 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
    int

    Properties

    EntityA

    The first entity in the pair.

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

    The entity a.

    EntityB

    The second entity in the pair.

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

    The entity b.

    Implements

    Unity.Entities.IComponentData
    Unity.Entities.IQueryTypeParameter
    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)