handleCollision method

void handleCollision(
  1. PositionComponent other
)

Implementation

void handleCollision(PositionComponent other) {
  if (other is! T || !enabled) {
    return;
  }

  if (_comp.checkInterval(
    _sensorIntervalKey,
    interval,
    _comp.lastDt,
  )) {
    for (final callback in _onContactCallbacks) {
      callback(other);
    }
  }
}