allow landing under lower hight skyboxes
parent
c032724921
commit
2ac6fb9ae9
|
@ -4667,16 +4667,6 @@ Label_GroupsDone:
|
|||
return false;
|
||||
}
|
||||
|
||||
// public bool IncomingCloseAgent(UUID agentID)
|
||||
// {
|
||||
// return IncomingCloseAgent(agentID, false);
|
||||
// }
|
||||
|
||||
// public bool IncomingCloseChildAgent(UUID agentID)
|
||||
// {
|
||||
// return IncomingCloseAgent(agentID, true);
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// Tell a single client to prepare to close.
|
||||
/// </summary>
|
||||
|
|
|
@ -1251,8 +1251,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
/// </remarks>
|
||||
|
||||
// constants for physics position search
|
||||
const float PhysSearchHeight = 600f;
|
||||
const float PhysMinSkipGap = 50f;
|
||||
const float PhysSearchHeight = 300f;
|
||||
const float PhysMinSkipGap = 20f;
|
||||
const float PhysSkipGapDelta = 30f;
|
||||
const int PhysNumberCollisions = 30;
|
||||
|
||||
// only in use as part of completemovement
|
||||
|
@ -1398,9 +1399,11 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
List<ContactResult> physresults =
|
||||
(List<ContactResult>)m_scene.RayCastFiltered(RayStart, direction, dist, physcount, rayfilter);
|
||||
if (physresults != null && physresults.Count > 0)
|
||||
while (physresults != null && physresults.Count > 0)
|
||||
{
|
||||
float dest = physresults[0].Pos.Z;
|
||||
if (dest - groundHeight > PhysMinSkipGap + PhysSkipGapDelta)
|
||||
break;
|
||||
|
||||
if (physresults.Count > 1)
|
||||
{
|
||||
|
@ -1420,7 +1423,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if(curd >= nextd)
|
||||
{
|
||||
sel = i;
|
||||
if(curd >= maxDepth)
|
||||
if(curd >= maxDepth || curd >= nextd + PhysSkipGapDelta)
|
||||
break;
|
||||
}
|
||||
nextd = curd + PhysMinSkipGap;
|
||||
|
@ -1431,6 +1434,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
dest += localAVHalfHeight;
|
||||
if(dest > pos.Z)
|
||||
pos.Z = dest;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue