1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-30 04:11:34 +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