handleCollision method

void handleCollision(
  1. PositionComponent other
)

Implementation

void handleCollision(PositionComponent other) {
  if (other is! T || !enabled) {
    return;
  }
  final tick = _intervalTick.update(_comp.lastDt);
  if (tick) {
    for (final callback in _onContactCallbacks) {
      callback(other);
    }
  }
}