diff --git a/src/game/entity.cpp b/src/game/entity.cpp index 942f872..5cf0152 100644 --- a/src/game/entity.cpp +++ b/src/game/entity.cpp @@ -167,11 +167,11 @@ bool game::EntityOccurrence::Sweep(const glm::vec3& target_position, float& hit_ { if (hit_portal) { - *hit_portal = sector_->TestPortalContact(bt_capsule_, basis_, position_); + *hit_portal = sector_->TestPortalContact(bt_capsule_, inv_normal_basis_, position_); if (!*hit_portal) { - *hit_portal = sector_->TestPortalContact(bt_capsule_, basis_, target_position); + *hit_portal = sector_->TestPortalContact(bt_capsule_, inv_normal_basis_, target_position); } }