SDLPP: add option to remove collisions

This commit is contained in:
2021-05-31 18:54:17 +02:00
parent 78c9b9feb0
commit 0b3689b0ae
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -63,6 +63,9 @@ RenderObject::colidesWith( const RenderObject &other ) const {
}
return ret;
}
void RenderObject::removeCollisions() {
collisions.clear();
}
bool RenderObject::hasCollisions() const {
return !collisions.empty();
}