BulletSim: Minor Fix to vehicle hovering, add more ways to disable it.

Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
0.8.0.3
Vegaslon 2014-02-21 15:36:27 -05:00 committed by Michael Cerquoni
parent 4aa483777b
commit 3c5b7d7b79
1 changed files with 1 additions and 1 deletions

View File

@ -1111,7 +1111,7 @@ namespace OpenSim.Region.Physics.BulletSPlugin
{
// m_VhoverEfficiency: 0=bouncy, 1=totally damped
// m_VhoverTimescale: time to achieve height
if ((m_flags & (VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT)) != 0)
if ((m_flags & (VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT)) != 0 && (m_VhoverHeight > 0) && (m_VhoverTimescale < 300))
{
// We should hover, get the target height
if ((m_flags & VehicleFlag.HOVER_WATER_ONLY) != 0)