From feacae173e3ec56dbb6c0f4186cee12b7a86cb23 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Wed, 16 Jul 2014 13:02:02 +0300 Subject: 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. --- OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs index 7df74f3..8f37b79 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODECharacter.cs @@ -500,8 +500,10 @@ namespace OpenSim.Region.Physics.OdePlugin { m_pidControllerActive = true; - m_tainted_CAPSULE_LENGTH = (size.Z * 1.15f) - CAPSULE_RADIUS * 2.0f; -// m_log.Info("[ODE CHARACTER]: " + CAPSULE_LENGTH); + m_tainted_CAPSULE_LENGTH = size.Z - CAPSULE_RADIUS * 2.0f; + + // m_log.InfoFormat("[ODE CHARACTER]: Size = {0}, Capsule Length = {1} (Capsule Radius = {2})", + // size, m_tainted_CAPSULE_LENGTH, CAPSULE_RADIUS); } else { -- cgit v1.1