SDLPP: add option to remove collisions
This commit is contained in:
@@ -63,6 +63,9 @@ RenderObject::colidesWith( const RenderObject &other ) const {
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
void RenderObject::removeCollisions() {
|
||||
collisions.clear();
|
||||
}
|
||||
bool RenderObject::hasCollisions() const {
|
||||
return !collisions.empty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user