Fixed avatar hovering above the ground. The avatar physics capsule was too tall.

This is related to http://opensimulator.org/mantis/view.php?id=7067 .
But that bug complains about BulletSim, and this fix is for ODE.
bullet-2.82
Oren Hurvitz 2014-07-16 13:02:02 +03:00
parent 4804edf77f
commit feacae173e
1 changed files with 4 additions and 2 deletions

View File

@ -500,8 +500,10 @@ namespace OpenSim.Region.Physics.OdePlugin
{ {
m_pidControllerActive = true; m_pidControllerActive = true;
m_tainted_CAPSULE_LENGTH = (size.Z * 1.15f) - CAPSULE_RADIUS * 2.0f; m_tainted_CAPSULE_LENGTH = size.Z - CAPSULE_RADIUS * 2.0f;
// m_log.Info("[ODE CHARACTER]: " + CAPSULE_LENGTH);
// m_log.InfoFormat("[ODE CHARACTER]: Size = {0}, Capsule Length = {1} (Capsule Radius = {2})",
// size, m_tainted_CAPSULE_LENGTH, CAPSULE_RADIUS);
} }
else else
{ {