onComponentTypeCheck abstract method

bool onComponentTypeCheck(
  1. PositionComponent other
)

Works only for the QuadTree collision detection. If you need to prevent collision of items of different types - reimplement onComponentTypeCheck. The result of calculation is cached so you should not check any dynamical parameters here, the function intended to be used as pure type checker. Call super.onComponentTypeCheck to get the parent's result of the type check if needed. In other causes this call is redundant in game code.

Implementation

bool onComponentTypeCheck(PositionComponent other);