Version: Unity 6 (6000.0)
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
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961