reportVelocityConstraints method

void reportVelocityConstraints()

Implementation

void reportVelocityConstraints() {
  if (listener == null) {
    return;
  }

  for (final contact in _contacts) {
    final vc = contact.velocityConstraint;
    _impulse.count = vc.pointCount;
    for (var j = 0; j < vc.pointCount; ++j) {
      _impulse.normalImpulses[j] = vc.points[j].normalImpulse;
      _impulse.tangentImpulses[j] = vc.points[j].tangentImpulse;
    }

    listener!.postSolve(contact, _impulse);
  }
}