aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2012-04-27 01:06:07 +0100
committerUbitUmarov2012-04-27 01:06:07 +0100
commit2cf6023892545e1e61669e67f9251858a09edd83 (patch)
tree62f70404845e9b9b46a7904b98d884430adc5ad5
parentrevert last add commit (diff)
downloadopensim-SC_OLD-2cf6023892545e1e61669e67f9251858a09edd83.zip
opensim-SC_OLD-2cf6023892545e1e61669e67f9251858a09edd83.tar.gz
opensim-SC_OLD-2cf6023892545e1e61669e67f9251858a09edd83.tar.bz2
opensim-SC_OLD-2cf6023892545e1e61669e67f9251858a09edd83.tar.xz
TEST added avnLocalTeleport(Vector3 newpos, Quaternion? newrot, bool Stopped) to scenepresence.cs
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 46a9469..d8203dd 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1099,6 +1099,28 @@ namespace OpenSim.Region.Framework.Scenes
1099 SendTerseUpdateToAllClients(); 1099 SendTerseUpdateToAllClients();
1100 } 1100 }
1101 1101
1102 public void avnLocalTeleport(Vector3 newpos, Quaternion? newrot, bool Stopped)
1103 {
1104 CheckLandingPoint(ref newpos);
1105 AbsolutePosition = newpos;
1106
1107 if (newrot.HasValue)
1108 {
1109 // TODO
1110 }
1111
1112 if (Stopped)
1113 {
1114 if (PhysicsActor != null) // speed up physics stop
1115 PhysicsActor.SetMomentum(Vector3.Zero);
1116 Velocity = Vector3.Zero;
1117 }
1118
1119 SendTerseUpdateToAllClients();
1120 }
1121
1122
1123
1102 public void StopFlying() 1124 public void StopFlying()
1103 { 1125 {
1104 ControllingClient.StopFlying(this); 1126 ControllingClient.StopFlying(this);