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
Inherited Members
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
[InternalBufferCapacity(4)]
public struct PhysicsJointCompanion : IBufferElementData
Fields
Name | Description |
---|---|
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. |