CollisionCallback<T> typedef

CollisionCallback<T> = void Function(List<Vector2> intersectionPoints, T other)

Can be used used to implement an onCollisionCallback or an onCollisionStartCallback.

Implementation

typedef CollisionCallback<T> =
    void Function(
      List<Vector2> intersectionPoints,
      T other,
    );