DistanceJointComponent Class
Definition
Namespace: Brine2D.ECS.Components.Joints
Constrains the distance between two anchor points to a target length. Supports a spring, translation limits, and a linear motor.
Inheritance System.Object → Component → JointComponent → DistanceJointComponent
| Properties | |
|---|---|
| CurrentLength | Current distance between anchors in pixels. Returns 0 if not yet live. |
| Hertz | Spring frequency in Hz. |
| Length | Target rest length in pixels. Leave at 0 to use Box2D's default \(computed from initial anchor positions when the joint is first created\). |