mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
limit unscripted and not done by physics sits to 10m distance again
This commit is contained in:
@@ -3401,6 +3401,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (PhysicsSit(part,offset)) // physics engine
|
||||
return;
|
||||
|
||||
if (Vector3.DistanceSquared(AbsolutePosition, pos) > 100f)
|
||||
return;
|
||||
|
||||
AbsolutePosition = pos + new Vector3(0.0f, 0.0f, m_sitAvatarHeight);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user