postSolve method

void postSolve(
  1. Object other,
  2. Contact contact,
  3. ContactImpulse impulse
)

Called after collision resolution.

Usually defined to gather collision impulse results. If one of the colliding objects is a sensor, this will not be called.

Implementation

void postSolve(Object other, Contact contact, ContactImpulse impulse) {
  onPostSolve?.call(other, contact, impulse);
}