collidingWith method

bool collidingWith(
  1. T other
)

Whether the object is colliding with other or not.

Implementation

bool collidingWith(T other) {
  return _activeCollisions?.contains(other) ?? false;
}