onCollision method
if return false
so the object will not collide with anything or block the passage.
Implementation
bool onCollision(GameComponent component, bool active) {
return true;
}
if return false
so the object will not collide with anything or block the passage.
bool onCollision(GameComponent component, bool active) {
return true;
}