RevoluteJointComponent Class
Constrains two bodies to share a common anchor point, allowing relative rotation. Supports angle limits, a rotational motor, and a spring. LocalAnchorA and LocalAnchorB define the pivot point on each body.
public sealed class RevoluteJointComponent : Brine2D.ECS.Components.Joints.JointComponent
Inheritance System.Object → Component → JointComponent → RevoluteJointComponent
| Properties | |
|---|---|
| CurrentAngle | Current joint angle in radians. Returns 0 if the joint is not yet live. |
| Hertz | Spring frequency in Hz. |
| LowerAngle | Lower angle limit in radians. |
| MaxMotorTorque | Maximum torque the motor can exert (N·m). |
| MotorSpeed | Desired motor speed in radians per second. |
| MotorTorque | Current reaction torque at the motor (N·m). Returns 0 if not yet live. |
| UpperAngle | Upper angle limit in radians. |