CharacterJoint
Character Joints are mainly used for Ragdoll effects.
Read time 7 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
- Inherits from: Joint
[RequireComponent(typeof(Rigidbody))]public class CharacterJoint : Joint
Remarks
They are an extended ball-socket joint which allows you to limit the joint on each axis.
Properties
Property | Description |
|---|---|
| enableProjection | Brings violated constraints back into alignment even when the solver fails. |
| highTwistLimit | The upper limit around the primary axis of the character joint. |
| lowTwistLimit | The lower limit around the primary axis of the character joint. |
| projectionAngle | Set the angular tolerance threshold (in degrees) for projection. |
| projectionDistance | Set the linear tolerance threshold for projection. |
| swing1Limit | The angular limit of rotation (in degrees) around the primary axis of the character joint. |
| swing2Limit | The angular limit of rotation (in degrees) around the primary axis of the character joint. |
| swingAxis | The secondary axis around which the joint can rotate. |
| swingLimitSpring | The configuration of the spring attached to the swing limits of the joint. |
| twistLimitSpring | The configuration of the spring attached to the twist limits of the joint. |
Inheritance
Operators
Operator | Description |
|---|---|
| operator == | Compares two object references to see if they refer to the same object. |
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |