Struct PhysicsJointCompanion | Unity Physics | 0.5.1-preview.2
docs.unity3d.com
    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.

    Namespace: Unity.Physics
    Syntax
    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
    • 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