mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
* This increases accuracy when border crossing (the reason is.. the border crossing code will use velocity to predict where the object should be, so setting it to zero. It still looses about 0.0045 per loop.
This commit is contained in:
@@ -644,8 +644,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// m_group.AbsolutePosition += motionThisFrame;
|
||||
m_nextPosition = m_group.AbsolutePosition + motionThisFrame;
|
||||
m_group.AbsolutePosition = m_nextPosition;
|
||||
|
||||
//m_group.RootPart.Velocity = v;
|
||||
if ((m_group.AbsolutePosition.X < 10 || m_group.AbsolutePosition.Y < 10 || m_group.AbsolutePosition.X > Constants.RegionSize - 10 || m_group.AbsolutePosition.Y > Constants.RegionSize - 10))
|
||||
m_group.RootPart.Velocity = v;
|
||||
update = true;
|
||||
}
|
||||
|
||||
@@ -736,12 +736,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_waitingCrossing = true;
|
||||
|
||||
// to remove / retune to smoth crossings
|
||||
if (m_group.RootPart.Velocity != Vector3.Zero)
|
||||
{
|
||||
m_group.RootPart.Velocity = Vector3.Zero;
|
||||
m_group.SendGroupRootTerseUpdate();
|
||||
//if (m_group.RootPart.Velocity != Vector3.Zero)
|
||||
//{
|
||||
// m_group.RootPart.Velocity = Vector3.Zero;
|
||||
// m_group.SendGroupRootTerseUpdate();
|
||||
// m_group.RootPart.ScheduleTerseUpdate();
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
public void CrossingFailure()
|
||||
|
||||
Reference in New Issue
Block a user