Enum JointType
A designation of one of several types of canonical joints.
Namespace: Unity.Physics
Syntax
public enum JointType : byte
Fields
Name | Description | Value |
---|---|---|
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. |
0 |
BallAndSocket | A joint constraining the anchor point on body A to the target point on body B, about which the bodies can freely rotate. |
1 |
Fixed | A joint constraining the position and orientation on body A to the target position and orientation on body B. |
2 |
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. |
3 |
LimitedDistance | A joint constraining the anchor point on body A to the target point on body B within a specified linear distance range. |
4 |
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. |
5 |
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. |
6 |
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. |
7 |
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. |
8 |
LimitedDegreeOfFreedom | A joint constraining the degrees of freedom of body A to a reference frame in the space of body B. |
9 |
RotationalMotor | A motor that orients body A to a target rotation. |
10 |
AngularVelocityMotor | A motor that drives a bodies angular velocity to a target angular velocity. |
11 |
PositionalMotor | A motor that moves body A to a target position. |
12 |
LinearVelocityMotor | A motor that drives a bodies' linear velocity to a target linear velocity. |
13 |