Core/Maps: re-added half-height values for collision checks
This commit is contained in:
1 parent
133b3180e9
commit
d51d40d39f
1 file changed
+2
-2
@@ -2541,7 +2541,7 @@ void WorldObject::MovePositionToFirstCollision(Position &pos, float dist, float
|
||||
uint32 terrainMapId = PhasingHandler::GetTerrainMapId(GetPhaseShift(), GetMap(), pos.m_positionX, pos.m_positionY);
|
||||
bool col = VMAP::VMapFactory::createOrGetVMapManager()->getObjectHitPos(terrainMapId,
|
||||
pos.m_positionX, pos.m_positionY, pos.m_positionZ + halfHeight,
|
||||
destx, desty, destz,
|
||||
destx, desty, destz + halfHeight,
|
||||
destx, desty, destz, -0.5f);
|
||||
|
||||
// collision occured
|
||||
@@ -2556,7 +2556,7 @@ void WorldObject::MovePositionToFirstCollision(Position &pos, float dist, float
|
||||
// check dynamic collision
|
||||
col = GetMap()->getObjectHitPos(GetPhaseShift(),
|
||||
pos.m_positionX, pos.m_positionY, pos.m_positionZ + halfHeight,
|
||||
destx, desty, destz,
|
||||
destx, desty, destz + halfHeight,
|
||||
destx, desty, destz, -0.5f);
|
||||
|
||||
// Collided with a gameobject
|
||||
|
||||
Reference in new issue
Block a user