DistanceJointComponent Class

Constrains the distance between two anchor points to a target length. Supports a spring, translation limits, and a linear motor.

public sealed class DistanceJointComponent : Brine2D.ECS.Components.Joints.JointComponent

Inheritance System.ObjectComponentJointComponent → 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).