Version: 2021.3
Language : English
Customize movement constraint with Configurable Joints
Configure driving forces on a Configurable Joint

Driving forces with Configurable Joints

A jointA physics component allowing a dynamic connection between Rigidbody components, usually allowing some degree of movement such as a hinge. More info
See in Glossary
can react to the movements of the object it is attached to, and apply driving forces to set the object in motion.

You can use the Configurable JointAn extremely customizable joint that other joint types are derived from. It can be used to create anything from adapted versions of existing joints to custom designed and highly specialized joints. More info
See in Glossary
to apply driving forces toward either a position-based target like a position or rotation, or a velocity-based target like a linear velocity or angular velocity.

Understand driving forces

The Configurable Joint applies driving forces on each axis, via axis drives, to apply motion and rotation.

The axis drives for linear force are: * X Drive * Y Drive * Z Drive

The axis drives for angular or rotational force are: * Angular X Drive * Angular YZ Drive

Each axis drive has spring and damper options to simulate a motor that generates force. The physics system uses these values to calculate the driving force it should apply on that axis, via the following formula:

force = positionSpring * (targetPosition - position) + positionDamper * (targetVelocity - velocity)

The Maximum Force property prevents the force from exceeding a specific value, even if the force calculation result is higher.

Customize movement constraint with Configurable Joints
Configure driving forces on a Configurable Joint