mantis 9184: refix avatar hover

This commit is contained in:
UbitUmarov
2025-03-12 00:50:28 +00:00
parent 8ec10f9ca8
commit 3cb2732855

View File

@@ -1364,7 +1364,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
} // end switch (m_PIDHoverType)
// don't go underground
if (m_targetHoverHeight > terrainheight + _position.Z)
if (m_targetHoverHeight > terrainheight + CapsuleSizeZ)
{
float fz = (m_targetHoverHeight - _position.Z);
@@ -1393,6 +1393,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
if (!m_iscolliding)
CollideNormal.Z = 0;
tviszero = ctv.IsZero();
if (!tviszero)
{
m_freemove = false;