handleCollision method
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);
}
}
}