diff options
author | UbitUmarov | 2012-04-27 01:43:27 +0100 |
---|---|---|
committer | UbitUmarov | 2012-04-27 01:43:27 +0100 |
commit | a64a9e48de5226da055b0196125c8f576c462a80 (patch) | |
tree | 138242c124b81d7b3ed1309c4e9b488eee1c3c0c /OpenSim/Region | |
parent | TEST more changes (diff) | |
download | opensim-SC_OLD-a64a9e48de5226da055b0196125c8f576c462a80.zip opensim-SC_OLD-a64a9e48de5226da055b0196125c8f576c462a80.tar.gz opensim-SC_OLD-a64a9e48de5226da055b0196125c8f576c462a80.tar.bz2 opensim-SC_OLD-a64a9e48de5226da055b0196125c8f576c462a80.tar.xz |
TESTING
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 6ef0c4e..e9ff07a 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1111,15 +1111,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
1111 | 1111 | ||
1112 | if (v.HasValue) | 1112 | if (v.HasValue) |
1113 | { | 1113 | { |
1114 | if (PhysicsActor != null) // speedup | 1114 | if (PhysicsActor != null) |
1115 | PhysicsActor.SetMomentum((Vector3)v); | 1115 | PhysicsActor.SetMomentum((Vector3)v); |
1116 | Velocity = (Vector3)v; | 1116 | m_velocity = (Vector3)v; |
1117 | } | 1117 | } |
1118 | else if (Stopit) | 1118 | else if (Stopit) |
1119 | { | 1119 | { |
1120 | if (PhysicsActor != null) // speedup | 1120 | if (PhysicsActor != null) |
1121 | PhysicsActor.SetMomentum(Vector3.Zero); | 1121 | PhysicsActor.SetMomentum(Vector3.Zero); |
1122 | Velocity = Vector3.Zero; // zero any velocity request | 1122 | m_velocity = Vector3.Zero; |
1123 | } | 1123 | } |
1124 | 1124 | ||
1125 | SendTerseUpdateToAllClients(); | 1125 | SendTerseUpdateToAllClients(); |
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs index 8b5b989..f22b0cc 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs | |||
@@ -1210,6 +1210,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
1210 | if (Body != IntPtr.Zero) | 1210 | if (Body != IntPtr.Zero) |
1211 | d.BodySetPosition(Body, newPos.X, newPos.Y, newPos.Z); | 1211 | d.BodySetPosition(Body, newPos.X, newPos.Y, newPos.Z); |
1212 | _position = newPos; | 1212 | _position = newPos; |
1213 | m_pidControllerActive = true; | ||
1213 | } | 1214 | } |
1214 | 1215 | ||
1215 | private void changeOrientation(Quaternion newOri) | 1216 | private void changeOrientation(Quaternion newOri) |