ubitODE still retouching character pid

avinationmerge
UbitUmarov 2012-04-18 03:59:38 +01:00
parent 7f42069295
commit 08714a0d38
1 changed files with 2 additions and 2 deletions

View File

@ -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;