onCollisionEnd method
onCollisionEnd is called once when this object has stopped colliding
with other
.
Implementation
@override
void onCollisionEnd(PositionComponent other) {
activeCollisions.remove(other);
final otherEntity = _findEntity(other);
if (otherEntity == null) {
return;
}
for (final behavior in _propagateToBehaviors) {
if (behavior.isValid(otherEntity)) {
behavior.onCollisionEnd(otherEntity);
}
}
return super.onCollisionEnd(other);
}