Enum JointType
A designation of one of several types of canonical joints.
Namespace: Unity.Physics
Syntax
public enum JointType : byte
Fields
Name | Description |
---|---|
BallAndSocket | A joint constraining the anchor point on body A to the target point on body B, about which the bodies can freely rotate. |
Custom | The default type. Use this value to designate a Constraint configuration that does not map to a common type of joint, or to designate unknown configurations. |
Fixed | A joint constraining the position and orientation on body A to the target position and orientation on body B. |
Hinge | A joint constraining the anchor point on body A to the target point on body B, where each body can rotate freely about the vector where their axes align. The perpendicular axis of each body frame has no effect. |
LimitedDistance | A joint constraining the anchor point on body A to the target point on body B within a specified linear distance range. |
LimitedHinge | A joint constraining the anchor point on body A to the target point on body B, where each body can rotate within a limited range about the vector where their axes align. The perpendicular axis of each body frame is used as a reference point for the range of motion. |
Prismatic | A joint constraining the anchor point on body A to the target point on body B, where the bodies' orientations are locked to one another and they can translate along the vector where the bodies' axes align. |
RagdollPerpendicularCone | A joint constraining the anchor point on body A to the target point on body B, where the relative orientation of the bodies' perpendicular axes may fall within a range of motion between two cones aligned with the primary axis. This type is used in conjunction with RagdollPrimaryCone, where body B's axis for this joint corresponds with body A's primary axis in the primary cone. |
RagdollPrimaryCone | A joint constraining the orientation of body A to the orientation of body B, where the relative orientation of the bodies' axes may fall within a conical range of motion. The bodies' perpendicular axes may further rotate about their axes within a limited range of motion. This type is used in conjunction with RagdollPerpendicularCone. |