Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

enableProjectionBrings violated constraints back into alignment even when the solver fails.
highTwistLimitThe upper limit around the primary axis of the character joint.
lowTwistLimitThe lower limit around the primary axis of the character joint.
projectionAngleSet the angular tolerance threshold (in degrees) for projection.
projectionDistanceSet the linear tolerance threshold for projection.
swing1LimitThe angular limit of rotation (in degrees) around the primary axis of the character joint.
swing2LimitThe angular limit of rotation (in degrees) around the primary axis of the character joint.
swingAxisThe secondary axis around which the joint can rotate.
swingLimitSpringThe configuration of the spring attached to the swing limits of the joint.
twistLimitSpringThe configuration of the spring attached to the twist limits of the joint.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.