getReactionForce method

void getReactionForce (double inv_dt, Vector2 argOut)
override

Get the reaction force given the inverse time step. Unit is N.

Implementation

void getReactionForce(double inv_dt, Vector2 argOut) {
  argOut.x = _impulse * _u.x * inv_dt;
  argOut.y = _impulse * _u.y * inv_dt;
}