onCollision method

void onCollision(
  1. Set<Vector2> intersectionPoints,
  2. Collider other
)

Called when the entity collides with Collider.

Implementation

void onCollision(Set<Vector2> intersectionPoints, Collider other) {}