From 899f00b83d8ed1ffa5233cde75e5adf69d9e93a3 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 6 Apr 2008 06:42:54 +0000 Subject: [PATCH] * Fixed up some documentation * Should help the sinking feeling when new avatar arrive in the scene. --- .../Region/Physics/OdePlugin/ODECharacter.cs | 4 ++-- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 22 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index e9492a9e2e..81126b6f93 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs @@ -704,7 +704,7 @@ namespace OpenSim.Region.Physics.OdePlugin _zeroFlag = false; if (m_iscolliding && !flying) { - // We're flying and colliding with something + // We're standing on something vec.X = ((_target_velocity.X / movementdivisor) - vel.X) * (PID_D); vec.Y = ((_target_velocity.Y / movementdivisor) - vel.Y) * (PID_D); } @@ -716,7 +716,7 @@ namespace OpenSim.Region.Physics.OdePlugin } else if (!m_iscolliding && flying) { - // We're flying and colliding with something + // we're in mid air suspended vec.X = ((_target_velocity.X / movementdivisor) - vel.X) * (PID_D/6); vec.Y = ((_target_velocity.Y / movementdivisor) - vel.Y) * (PID_D/6); } diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 673818a0be..33b9ce3017 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -1537,11 +1537,11 @@ namespace OpenSim.Region.Physics.OdePlugin while (step_time > 0.0f) { - lock (ode) - { - if (!ode.lockquery()) - { - ode.dlock(world); + //lock (ode) + //{ + //if (!ode.lockquery()) + //{ + // ode.dlock(world); try { lock (_characters) @@ -1605,12 +1605,12 @@ namespace OpenSim.Region.Physics.OdePlugin step_time -= ODE_STEPSIZE; i++; - } - else - { - fps = 0; - } - } + //} + //else + //{ + //fps = 0; + //} + //} } lock (_characters)