Set spring data into this constraint.
void setSpring(int frequency,double dampingRatio ) { this.frequency = frequency; this.dampingRatio = dampingRatio; }