Enum JointType
A designation of one of several types of canonical joints.
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public enum JointType : byte
Fields
Name | Description |
---|---|
AngularVelocityMotor | A motor that drives a bodies angular velocity to a target angular velocity. |
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. |
LimitedDegreeOfFreedom | A joint constraining the degrees of freedom of body A to a reference frame in the space of body B. |
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. |
LinearVelocityMotor | A motor that drives a bodies' linear velocity to a target linear velocity. |
PositionalMotor | A motor that moves body A to a target position. |
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. |
RotationalMotor | A motor that orients body A to a target rotation. |