From f7b8c54c24c9495bb54fb3443856e25d18e11230 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 4 Nov 2011 23:43:17 +0000 Subject: Add comment for experimental effect of removing the Thread.Sleep(20) in ODEPrim.changevelocity() --- OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 2 +- OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 19d87c2..3630510 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs @@ -1269,7 +1269,7 @@ namespace OpenSim.Region.Physics.OdePlugin // m_taintForce = Vector3.Zero. Need to lock ProcessTaints() when we set a new tainted force. doForce(m_taintForce); } - + m_taintForce = Vector3.Zero; } diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index ea6af3a..2f9a54b 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs @@ -2250,7 +2250,10 @@ Console.WriteLine(" JointCreateFixed"); { if (!m_isSelected) { + // Not sure exactly why this sleep is here, but from experimentation it appears to stop an avatar + // walking through a default rez size prim if it keeps kicking it around - justincc. Thread.Sleep(20); + if (IsPhysical) { if (Body != IntPtr.Zero) -- cgit v1.1