fix(Core/Vmaps): Do not ignore model rotation when calculating liquid level (#20760)
cherry-picked from:
53b4501ce9
Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
parent
cf7959238a
commit
2d616ce0e8
1 changed files with 1 additions and 2 deletions
|
|
@ -150,8 +150,7 @@ namespace VMAP
|
|||
if (info.hitModel->GetLiquidLevel(pModel, zDist))
|
||||
{
|
||||
// calculate world height (zDist in model coords):
|
||||
// assume WMO not tilted (wouldn't make much sense anyway)
|
||||
liqHeight = zDist * iScale + iPos.z;
|
||||
liqHeight = (Vector3(pModel.x, pModel.y, zDist) * iInvRot * iScale + iPos).z;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue