From 08714a0d3826acee9f0e0bfa278efe97206dce18 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 18 Apr 2012 03:59:38 +0100 Subject: [PATCH] ubitODE still retouching character pid --- OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs index b28bc4a0d5..ec4be58361 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs @@ -862,12 +862,12 @@ namespace OpenSim.Region.Physics.OdePlugin float depth = terrainheight - chrminZ; if (!flying) { - vec.Z = -vel.Z * PID_D * 3f + depth * PID_P * 60; + vec.Z = -vel.Z * PID_D * 1.5f + depth * PID_P * 60; } else vec.Z = depth * PID_P * 60; - if (depth < 0.1f) + if (depth < 0.2f) { m_iscolliding = true; m_colliderfilter = 2;