CollisionCallback<T> typedef

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

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

Implementation

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