mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
change ubode avatar outbounds park position
This commit is contained in:
@@ -1174,12 +1174,12 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
else if (_position.X < 0.0f)
|
||||
{
|
||||
fixbody = true;
|
||||
_position.X = 0.1f;
|
||||
_position.X = 0.01f;
|
||||
}
|
||||
else if (_position.X > m_parent_scene.WorldExtents.X - 0.1f)
|
||||
else if (_position.X > m_parent_scene.WorldExtents.X - 0.01f)
|
||||
{
|
||||
fixbody = true;
|
||||
_position.X = m_parent_scene.WorldExtents.X - 0.1f;
|
||||
_position.X = m_parent_scene.WorldExtents.X - 0.01f;
|
||||
}
|
||||
|
||||
if ((Single.IsNaN(_position.Y) || Single.IsInfinity(_position.Y)))
|
||||
@@ -1190,12 +1190,12 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
else if (_position.Y < 0.0f)
|
||||
{
|
||||
fixbody = true;
|
||||
_position.Y = 0.1f;
|
||||
_position.Y = 0.01f;
|
||||
}
|
||||
else if (_position.Y > m_parent_scene.WorldExtents.Y - 0.1f)
|
||||
else if (_position.Y > m_parent_scene.WorldExtents.Y - 0.01f)
|
||||
{
|
||||
fixbody = true;
|
||||
_position.Y = m_parent_scene.WorldExtents.Y - 0.1f;
|
||||
_position.Y = m_parent_scene.WorldExtents.Y - 0.01f;
|
||||
}
|
||||
|
||||
if ((Single.IsNaN(_position.Z) || Single.IsInfinity(_position.Z)))
|
||||
|
||||
Reference in New Issue
Block a user