onCollisionStart method

  1. @mustCallSuper
void onCollisionStart(
  1. Set<Vector2> intersectionPoints,
  2. T other
)

onCollisionStart is called in the first tick when this object starts colliding with other.

Implementation

@mustCallSuper
void onCollisionStart(Set<Vector2> intersectionPoints, T other) {
  activeCollisions.add(other);
  onCollisionStartCallback?.call(intersectionPoints, other);
}