BulletSim: enable angular vertical attraction.

Increase terrain collision margin to help vehicles from tunneling
into same.
user_profiles
Robert Adams 2013-01-28 17:21:13 -08:00
parent 531d0429d1
commit 47f09ed4c1
2 changed files with 3 additions and 3 deletions

View File

@ -141,12 +141,12 @@ namespace OpenSim.Region.Physics.BulletSPlugin
// in changes by making enablement of debugging flags from INI file.
public void SetupVehicleDebugging()
{
enableAngularVerticalAttraction = false;
enableAngularVerticalAttraction = true;
enableAngularDeflection = false;
enableAngularBanking = false;
if (BSParam.VehicleDebuggingEnabled != ConfigurationParameters.numericFalse)
{
enableAngularVerticalAttraction = false;
enableAngularVerticalAttraction = true;
enableAngularDeflection = false;
enableAngularBanking = false;
}

View File

@ -383,7 +383,7 @@ public static class BSParam
(s) => { return TerrainRestitution; },
(s,p,l,v) => { TerrainRestitution = v; /* TODO: set on real terrain */ } ),
new ParameterDefn("TerrainCollisionMargin", "Margin where collision checking starts" ,
0.04f,
0.08f,
(s,cf,p,v) => { TerrainCollisionMargin = cf.GetFloat(p, v); },
(s) => { return TerrainCollisionMargin; },
(s,p,l,v) => { TerrainCollisionMargin = v; /* TODO: set on real terrain */ } ),