I guess I half ass fixed hitbox resolution

This commit is contained in:
2023-03-21 15:16:48 -07:00
parent 0be34af8dc
commit bfcf5b0448
4 changed files with 13 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ bool_t Collider2D::getCollidingResult(
glm::vec2 &exitPoint
) {
assertNotNull(other);
assertTrue(movement.x != 0 || movement.y != 0);
if(movement.x == 0 && movement.y == 0) return false;
auto localPos = this->transform->getLocalPosition();
glm::vec2 myPos(localPos.x, localPos.z);