fix (core): Shallow Water Calulation Correction (#11419)
Shallow water calculation (in water and water walking value) is in correct and were matching. not right at all. this corrects the issue.
This commit is contained in:
@@ -1965,9 +1965,9 @@ inline LiquidData const GridMap::GetLiquidData(float x, float y, float z, float
|
|||||||
|
|
||||||
if (delta > collisionHeight)
|
if (delta > collisionHeight)
|
||||||
liquidData.Status = LIQUID_MAP_UNDER_WATER;
|
liquidData.Status = LIQUID_MAP_UNDER_WATER;
|
||||||
else if (delta > 0.2f)
|
else if (delta > 0.0f)
|
||||||
liquidData.Status = LIQUID_MAP_IN_WATER;
|
liquidData.Status = LIQUID_MAP_IN_WATER;
|
||||||
else if (delta > -0.2f)
|
else if (delta > -0.1f)
|
||||||
liquidData.Status = LIQUID_MAP_WATER_WALK;
|
liquidData.Status = LIQUID_MAP_WATER_WALK;
|
||||||
else
|
else
|
||||||
liquidData.Status = LIQUID_MAP_ABOVE_WATER;
|
liquidData.Status = LIQUID_MAP_ABOVE_WATER;
|
||||||
|
|||||||
Reference in New Issue
Block a user