onCollisionEnd method

  1. @override
  2. @mustCallSuper
void onCollisionEnd(
  1. PositionComponent other
)
override

onCollisionEnd is called once when this object has stopped colliding with other.

Implementation

@override
@mustCallSuper
void onCollisionEnd(PositionComponent other) {
  activeCollisions.remove(other);
  onCollisionEndCallback?.call(other);
}