diff options
author | UbitUmarov | 2012-04-14 05:07:52 +0100 |
---|---|---|
committer | UbitUmarov | 2012-04-14 05:07:52 +0100 |
commit | 3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7 (patch) | |
tree | 5296b367d89f3c62f8ad3bf85b09d1f7b67cb8b4 /OpenSim/Region/Framework | |
parent | Use presence absolute position to request raycast to camera. Used m_pos maybe... (diff) | |
download | opensim-SC-3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7.zip opensim-SC-3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7.tar.gz opensim-SC-3999822e13d7ae2f6ab1c19a19a01e0cc7c7acd7.tar.bz2 opensim-SC-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.cs | 4 |
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 | ||