docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PhysicsJointCompanion

    A buffer element to indicate additional entities in a complex joint configuration. Most joint types can be described with a single PhysicsJoint, but complex setups like ragdoll joints require more than one joint to stabilize. This component allows you to locate all of the other joints in such setups to facilitate group destruction, deactivation, and so on. Each joint entity in the group should have this component, with one element for each other joint in the group.

    Implements
    IBufferElementData
    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
    [InternalBufferCapacity(4)]
    public struct PhysicsJointCompanion : IBufferElementData

    Fields

    JointEntity

    Another entity presumed to have PhysicsConstrainedBodyPair and PhysicsJoint , as well as PhysicsJointCompanion with at least one element whose value matches the entity to which this buffer is added. The PhysicsConstrainedBodyPair of this other entity is further presumed to have the same value as that for the entity to which this buffer is added.

    Declaration
    public Entity JointEntity
    Field Value
    Type Description
    Entity

    Implements

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