BaseItem.on_collision_exit method

on_collision_exit(self, handler: Callable[[t: BaseItem], None]) -> None:

Handles the end of a collision between this item and another item.

Calling this function on an existing collision handler overwrites the handler.

Parameters

  • handler: Callable[[t: BaseItem], None]

    passes item which this item collided against.