I guess I half ass fixed hitbox resolution
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user