Fix basis passed to TestPortalContact
This commit is contained in:
parent
58e02b2cb1
commit
d872eb0b55
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user