-bool Entity::TileLock(const geometry::Vector<int> &tileSize) const {
- // TODO: change position to point to the top-left corner of a tile
- Vector<int> tilePosition(position);
- return (tilePosition.X() % tileSize.X() == 0) && (tilePosition.Y() % tileSize.Y() == 0);
+bool Entity::TileLock(const math::Vector<int> &tileSize) const {
+ Vector<int> tilePosition(ToInt(position));
+ return tilePosition % tileSize == Vector<int>();