aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-08-30 01:09:33 +0100
committerJustin Clark-Casey (justincc)2014-08-30 01:09:33 +0100
commit473c559478ab56872f0e9d1bea3971b849df0b15 (patch)
treee847b265b49743dc262bca2caf9d71a2b890336d
parentAs per the LL grid, for attachments make llGetObjectDetails() OBJECT_VELOCITY... (diff)
downloadopensim-SC-473c559478ab56872f0e9d1bea3971b849df0b15.zip
opensim-SC-473c559478ab56872f0e9d1bea3971b849df0b15.tar.gz
opensim-SC-473c559478ab56872f0e9d1bea3971b849df0b15.tar.bz2
opensim-SC-473c559478ab56872f0e9d1bea3971b849df0b15.tar.xz
As per the LL grid, if an avatar is sitting then return it's velocity relative to the region rather than relative to its seat.
Resolves http://opensimulator.org/mantis/view.php?id=7175
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index f744464..e0b7640 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -622,9 +622,14 @@ namespace OpenSim.Region.Framework.Scenes
622// "[SCENE PRESENCE]: Set velocity {0} for {1} in {2} via getting Velocity!", 622// "[SCENE PRESENCE]: Set velocity {0} for {1} in {2} via getting Velocity!",
623// m_velocity, Name, Scene.RegionInfo.RegionName); 623// m_velocity, Name, Scene.RegionInfo.RegionName);
624 } 624 }
625 else if (ParentPart != null)
626 {
627 return ParentPart.ParentGroup.Velocity;
628 }
625 629
626 return m_velocity; 630 return m_velocity;
627 } 631 }
632
628 set 633 set
629 { 634 {
630 if (PhysicsActor != null) 635 if (PhysicsActor != null)