diff options
author | Melanie | 2012-12-18 09:44:10 +0000 |
---|---|---|
committer | Melanie | 2012-12-18 09:44:10 +0000 |
commit | b9939a46a19af74f79a492e3b9fb3f65d0de31cd (patch) | |
tree | b20ee4582458689096ff58770397c766c4ac36a8 /OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs | |
parent | Merge branch 'master' into careminster (diff) | |
parent | BulletSim: fix vehicles being shot in the air at border crossings because of ... (diff) | |
download | opensim-SC-b9939a46a19af74f79a492e3b9fb3f65d0de31cd.zip opensim-SC-b9939a46a19af74f79a492e3b9fb3f65d0de31cd.tar.gz opensim-SC-b9939a46a19af74f79a492e3b9fb3f65d0de31cd.tar.bz2 opensim-SC-b9939a46a19af74f79a492e3b9fb3f65d0de31cd.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs b/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs index 82e829e..ef68471 100644 --- a/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/BSDynamics.cs | |||
@@ -871,8 +871,11 @@ namespace OpenSim.Region.Physics.BulletSPlugin | |||
871 | if (VehiclePosition.Z < GetTerrainHeight(VehiclePosition)) | 871 | if (VehiclePosition.Z < GetTerrainHeight(VehiclePosition)) |
872 | { | 872 | { |
873 | // TODO: correct position by applying force rather than forcing position. | 873 | // TODO: correct position by applying force rather than forcing position. |
874 | VehiclePosition += new Vector3(0f, 0f, GetTerrainHeight(VehiclePosition) + 2f); | 874 | Vector3 newPosition = VehiclePosition; |
875 | VDetailLog("{0}, MoveLinear,terrainHeight,terrainHeight={1},pos={2}", Prim.LocalID, GetTerrainHeight(VehiclePosition), VehiclePosition); | 875 | newPosition.Z = GetTerrainHeight(VehiclePosition) + 1f; |
876 | VehiclePosition = newPosition; | ||
877 | VDetailLog("{0}, MoveLinear,terrainHeight,terrainHeight={1},pos={2}", | ||
878 | Prim.LocalID, GetTerrainHeight(VehiclePosition), VehiclePosition); | ||
876 | } | 879 | } |
877 | return ret; | 880 | return ret; |
878 | } | 881 | } |