onCollision method

bool onCollision(
  1. GameComponent component,
  2. bool active
)

if return false so the object will not collide with anything or block the passage.

Implementation

bool onCollision(GameComponent component, bool active) {
  return true;
}