We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f5866 commit c0d8dbaCopy full SHA for c0d8dba
src/common/Collision/Models/ModelInstance.cpp
@@ -112,8 +112,7 @@ namespace VMAP
112
if (info.hitModel->GetLiquidLevel(pModel, zDist))
113
{
114
// calculate world height (zDist in model coords):
115
- // assume WMO not tilted (wouldn't make much sense anyway)
116
- liqHeight = zDist * iScale + iPos.z;
+ liqHeight = (Vector3(pModel.x, pModel.y, zDist) * iInvRot * iScale + iPos).z;
117
return true;
118
}
119
return false;
0 commit comments