aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorUbitUmarov2012-04-14 05:07:52 +0100
committerUbitUmarov2012-04-14 05:07:52 +0100
commit3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7 (patch)
tree5296b367d89f3c62f8ad3bf85b09d1f7b67cb8b4 /OpenSim/Region/Framework
parentUse presence absolute position to request raycast to camera. Used m_pos maybe... (diff)
downloadopensim-SC_OLD-3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7.zip
opensim-SC_OLD-3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7.tar.gz
opensim-SC_OLD-3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7.tar.bz2
opensim-SC_OLD-3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7.tar.xz
Use chode character actor.SetMomentum() to force full restore Velocity in scenepresence TeleportWithMomentum(), since actor.Velocity was selected by original coders as the input of a desired velocity (even 'forces') that is modified by character conditions, like not changing velocity.Z if it is in free fall.
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 855a341..8ac09e9 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1082,7 +1082,9 @@ namespace OpenSim.Region.Framework.Scenes
1082 CheckLandingPoint(ref pos); 1082 CheckLandingPoint(ref pos);
1083 AbsolutePosition = pos; 1083 AbsolutePosition = pos;
1084 AddToPhysicalScene(isFlying); 1084 AddToPhysicalScene(isFlying);
1085 Velocity = vel; 1085 if (PhysicsActor != null)
1086 PhysicsActor.SetMomentum(vel);
1087
1086 SendTerseUpdateToAllClients(); 1088 SendTerseUpdateToAllClients();
1087 } 1089 }
1088 1090