/**
 * Represents a spring constraint between two particles
 *
 * @public
 */ /**
 * Creates a new spring constraint
 *
 * @public
 */ function createSpringConstraint(particleA, particleB, restLength, stiffness = 0.8, compliance = 0) {
    return {
        particleA,
        particleB,
        restLength,
        stiffness,
        compliance,
        lambda: 0
    };
}

export { createSpringConstraint };
//# sourceMappingURL=spring_constraint.js.map
