setSpring method

void setSpring(
  1. int frequency,
  2. double dampingRatio
)

Set spring data into this constraint.

Implementation

void setSpring(int frequency,double dampingRatio ) {
  this.frequency = frequency;
  this.dampingRatio = dampingRatio;
}