mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-09 14:34:33 +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:
commit
d680870e8f
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ namespace NavMeshTool
|
||||||
static_cast<btScalar>(cellPosition.y() * ESM::Land::REAL_SIZE),
|
static_cast<btScalar>(cellPosition.y() * ESM::Land::REAL_SIZE),
|
||||||
minHeight
|
minHeight
|
||||||
);
|
);
|
||||||
aabb.m_min = btVector3(
|
aabb.m_max = btVector3(
|
||||||
static_cast<btScalar>((cellPosition.x() + 1) * ESM::Land::REAL_SIZE),
|
static_cast<btScalar>((cellPosition.x() + 1) * ESM::Land::REAL_SIZE),
|
||||||
static_cast<btScalar>((cellPosition.y() + 1) * ESM::Land::REAL_SIZE),
|
static_cast<btScalar>((cellPosition.y() + 1) * ESM::Land::REAL_SIZE),
|
||||||
maxHeight
|
maxHeight
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue