updateMomentum method

  1. @protected
void updateMomentum()

A method which must be explicitly called inside your update() implementation.

Implementation

@protected
void updateMomentum() {
  controller._setMomentum(this);
}