diff options
author | Robert Adams | 2012-10-23 17:30:43 -0700 |
---|---|---|
committer | Robert Adams | 2012-10-23 17:30:43 -0700 |
commit | b6fc5bad000e7e7af992e7f29eeb2de9f716fcc4 (patch) | |
tree | c3d20e87083d9781316b719ea684d4a5c6eeabba /OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs | |
parent | BulletSim: minor change to insure avatar body recreation when shape changes. (diff) | |
download | opensim-SC-b6fc5bad000e7e7af992e7f29eeb2de9f716fcc4.zip opensim-SC-b6fc5bad000e7e7af992e7f29eeb2de9f716fcc4.tar.gz opensim-SC-b6fc5bad000e7e7af992e7f29eeb2de9f716fcc4.tar.bz2 opensim-SC-b6fc5bad000e7e7af992e7f29eeb2de9f716fcc4.tar.xz |
BulletSim: fix problem with avatars sinking into the ground.
Change terrain activation state to DISABLE_SIMULATION for better performance.
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs b/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs index ae267e3..880859a 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSTerrainManager.cs | |||
@@ -333,8 +333,8 @@ public class BSTerrainManager | |||
333 | 333 | ||
334 | // Make sure the new shape is processed. | 334 | // Make sure the new shape is processed. |
335 | // BulletSimAPI.Activate2(mapInfo.terrainBody.ptr, true); | 335 | // BulletSimAPI.Activate2(mapInfo.terrainBody.ptr, true); |
336 | BulletSimAPI.ForceActivationState2(mapInfo.terrainBody.ptr, ActivationState.ISLAND_SLEEPING); | 336 | // BulletSimAPI.ForceActivationState2(mapInfo.terrainBody.ptr, ActivationState.ISLAND_SLEEPING); |
337 | // BulletSimAPI.ForceActivationState2(mapInfo.terrainBody.ptr, ActivationState.DISABLE_SIMULATION); | 337 | BulletSimAPI.ForceActivationState2(mapInfo.terrainBody.ptr, ActivationState.DISABLE_SIMULATION); |
338 | 338 | ||
339 | m_terrainModified = true; | 339 | m_terrainModified = true; |
340 | }; | 340 | }; |