docs.unity.cn
    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.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    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
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023