1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-21 09:39:56 +00:00

Merge branch 'fix_aabb' into 'master'

Fix btAABB initialization (#6489)

Closes #6489

See merge request OpenMW/openmw!1664
This commit is contained in:
psi29a 2022-02-16 08:01:23 +00:00
commit d680870e8f

View File

@ -178,7 +178,7 @@ namespace NavMeshTool
static_cast<btScalar>(cellPosition.y() * ESM::Land::REAL_SIZE),
minHeight
);
aabb.m_min = btVector3(
aabb.m_max = btVector3(
static_cast<btScalar>((cellPosition.x() + 1) * ESM::Land::REAL_SIZE),
static_cast<btScalar>((cellPosition.y() + 1) * ESM::Land::REAL_SIZE),
maxHeight