![]() |
Kale
|
#include <Collidable.hpp>
Public Member Functions | |
Rect | getBoundingBox () const |
Protected Attributes | |
Rect | boundingBox |
All nodes capable of collision must inherit from this class
Definition at line 28 of file Collidable.hpp.
Rect Collidable::getBoundingBox | ( | ) | const |
Thread safe method to get the bounding box
Definition at line 25 of file Collidable.cpp.
|
protected |
The bounding box of the node, bounding box should be updated in preUpdate where possible allowing other nodes to use it during update. Thread syncrhonization to bounding box updating is expected by the inheriting node.
Definition at line 35 of file Collidable.hpp.