diff options
author | Robert Adams | 2013-07-08 16:21:10 -0700 |
---|---|---|
committer | Robert Adams | 2013-07-08 16:24:31 -0700 |
commit | fad4241e4ea898b0dca0176cc9b428d03ba44d1c (patch) | |
tree | c9786d6ee34555025448ebadcf4f500657259b65 /OpenSim/Region/Physics/BulletSPlugin/Tests | |
parent | minor: remove mono compiler warnings from HGSuitcaseInventoryService (diff) | |
download | opensim-SC_OLD-fad4241e4ea898b0dca0176cc9b428d03ba44d1c.zip opensim-SC_OLD-fad4241e4ea898b0dca0176cc9b428d03ba44d1c.tar.gz opensim-SC_OLD-fad4241e4ea898b0dca0176cc9b428d03ba44d1c.tar.bz2 opensim-SC_OLD-fad4241e4ea898b0dca0176cc9b428d03ba44d1c.tar.xz |
BulletSim: make all the different angularVerticalAttraction algorithms
selectable from configuration paramters.
Changed default algorithm to "1" from previous default as it seems to
handle Y axis correction a little better.
Add config file independent enablement of vehicle angular forces to
make debugging easier (independent testing of forces).
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/Tests')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/Tests/BasicVehicles.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/Tests/BasicVehicles.cs b/OpenSim/Region/Physics/BulletSPlugin/Tests/BasicVehicles.cs index 583c436..48d3742 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/Tests/BasicVehicles.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/Tests/BasicVehicles.cs | |||
@@ -57,6 +57,8 @@ public class BasicVehicles : OpenSimTestCase | |||
57 | public void Init() | 57 | public void Init() |
58 | { | 58 | { |
59 | Dictionary<string, string> engineParams = new Dictionary<string, string>(); | 59 | Dictionary<string, string> engineParams = new Dictionary<string, string>(); |
60 | engineParams.Add("VehicleEnableAngularVerticalAttraction", "true"); | ||
61 | engineParams.Add("VehicleAngularVerticalAttractionAlgorithm", "1"); | ||
60 | PhysicsScene = BulletSimTestsUtil.CreateBasicPhysicsEngine(engineParams); | 62 | PhysicsScene = BulletSimTestsUtil.CreateBasicPhysicsEngine(engineParams); |
61 | 63 | ||
62 | PrimitiveBaseShape pbs = PrimitiveBaseShape.CreateSphere(); | 64 | PrimitiveBaseShape pbs = PrimitiveBaseShape.CreateSphere(); |
@@ -119,7 +121,7 @@ public class BasicVehicles : OpenSimTestCase | |||
119 | { | 121 | { |
120 | vehicleActor.ProcessFloatVehicleParam(Vehicle.VERTICAL_ATTRACTION_EFFICIENCY, efficiency); | 122 | vehicleActor.ProcessFloatVehicleParam(Vehicle.VERTICAL_ATTRACTION_EFFICIENCY, efficiency); |
121 | vehicleActor.ProcessFloatVehicleParam(Vehicle.VERTICAL_ATTRACTION_TIMESCALE, timeScale); | 123 | vehicleActor.ProcessFloatVehicleParam(Vehicle.VERTICAL_ATTRACTION_TIMESCALE, timeScale); |
122 | vehicleActor.enableAngularVerticalAttraction = true; | 124 | // vehicleActor.enableAngularVerticalAttraction = true; |
123 | 125 | ||
124 | TestVehicle.IsPhysical = true; | 126 | TestVehicle.IsPhysical = true; |
125 | PhysicsScene.ProcessTaints(); | 127 | PhysicsScene.ProcessTaints(); |