mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
mantis 9184: refix avatar hover
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user