BaseItem.physics.on_collision_enter method

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

Handles the start of a physics collision between this item and another item.

To remove the handler, pass null for handler.

Parameters

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

    passes BaseItem which this item collides against.