isObjectCollision method

bool isObjectCollision()

Method that checks if this component contain collisions

Implementation

bool isObjectCollision() {
  return (this is ObjectCollision &&
      (this as ObjectCollision).containCollision());
}