checkCollision method

bool checkCollision(
  1. ObjectCollision component, {
  2. Vector2? displacement,
})

Implementation

bool checkCollision(ObjectCollision component, {Vector2? displacement}) {
  return _collisionConfig?.verifyCollision(
        component.collisionConfig,
        displacement: displacement,
      ) ??
      false;
}