diff options
author | Robert Adams | 2013-01-29 17:01:27 -0800 |
---|---|---|
committer | Robert Adams | 2013-01-29 17:04:28 -0800 |
commit | a61ecee227450ea81c9afe85a62b207fefa888a9 (patch) | |
tree | 8209ad276576a95e86d054f3e36c70b9ec5fb813 /OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs | |
parent | minor: change name of json script tests to JsonStoreScriptModuleTests instead... (diff) | |
download | opensim-SC_OLD-a61ecee227450ea81c9afe85a62b207fefa888a9.zip opensim-SC_OLD-a61ecee227450ea81c9afe85a62b207fefa888a9.tar.gz opensim-SC_OLD-a61ecee227450ea81c9afe85a62b207fefa888a9.tar.bz2 opensim-SC_OLD-a61ecee227450ea81c9afe85a62b207fefa888a9.tar.xz |
BulletSim: fix physics repositioning when under ground to only happen
for physical objects. Non-physical objects can go anywhere they want.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs b/OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs index 215e92f..28207a4 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | ||
29 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
30 | using System.Linq; | 31 | using System.Linq; |
31 | using System.Text; | 32 | using System.Text; |
@@ -65,9 +66,16 @@ public static class BulletSimTestsUtil | |||
65 | bulletSimConfig.Set(kvp.Key, kvp.Value); | 66 | bulletSimConfig.Set(kvp.Key, kvp.Value); |
66 | } | 67 | } |
67 | } | 68 | } |
68 | // bulletSimConfig.Set("PhysicsLoggingEnabled","True"); | 69 | |
69 | // bulletSimConfig.Set("PhysicsLoggingDoFlush","True"); | 70 | // If a special directory exists, put detailed logging therein. |
70 | // bulletSimConfig.Set("VehicleLoggingEnabled","True"); | 71 | // This allows local testing/debugging without having to worry that the build engine will output logs. |
72 | if (Directory.Exists("physlogs")) | ||
73 | { | ||
74 | bulletSimConfig.Set("PhysicsLoggingDir","./physlogs"); | ||
75 | bulletSimConfig.Set("PhysicsLoggingEnabled","True"); | ||
76 | bulletSimConfig.Set("PhysicsLoggingDoFlush","True"); | ||
77 | bulletSimConfig.Set("VehicleLoggingEnabled","True"); | ||
78 | } | ||
71 | 79 | ||
72 | BSPlugin bsPlugin = new BSPlugin(); | 80 | BSPlugin bsPlugin = new BSPlugin(); |
73 | 81 | ||