setAtRest method
Set the spring to be at rest by making its end value equal to its current value and setting velocity to 0. @return this object
Implementation
Spring setAtRest() {
_mEndValue = _mCurrentState.position;
_mTempState.position = _mCurrentState.position;
_mCurrentState.velocity = 0;
return this;
}