class
ControlJoint
public class ControlJoint : PhysicsJoint The control joint is designed to control the movement of a body while remaining responsive to collisions. A spring can be used to control position and rotation, while a velocity motor can control velocity and simulate friction in top-down games. Both methods can be combined — for example, a spring with friction. Position and velocity control each have configurable force and torque limits.
Properties
| Name | Type | Description |
|---|---|---|
LinearVelocity | Vector3 | The desired relative linear velocity. |
AngularVelocity | Vector3 | The desired relative angular velocity in radians per second. |
MaxVelocityForce | Single | The joint maximum force. |
MaxVelocityTorque | Single | The joint maximum torque. |
LinearSpring | PhysicsSpring | The spring linear hertz stiffness and damping ratio. |
AngularSpring | PhysicsSpring | The spring angular hertz stiffness and damping ratio. |