diff options
author | Robert Adams | 2014-08-30 08:29:39 -0700 |
---|---|---|
committer | Robert Adams | 2014-08-30 08:29:39 -0700 |
commit | 3d65d221380be455ea79601798abcba490a912e0 (patch) | |
tree | 551e7c98ce1695e9b42ac5de1d96ccddd095f947 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | Merge branch 'master' into bullet-2.82 (diff) | |
parent | As per the LL grid, if an avatar is sitting then return it's velocity relativ... (diff) | |
download | opensim-SC-3d65d221380be455ea79601798abcba490a912e0.zip opensim-SC-3d65d221380be455ea79601798abcba490a912e0.tar.gz opensim-SC-3d65d221380be455ea79601798abcba490a912e0.tar.bz2 opensim-SC-3d65d221380be455ea79601798abcba490a912e0.tar.xz |
Merge branch 'master' into bullet-2.82
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index ebbc6f3..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) |
@@ -2631,7 +2636,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2631 | 2636 | ||
2632 | // Vector3 standPositionAdjustment | 2637 | // Vector3 standPositionAdjustment |
2633 | // = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f); | 2638 | // = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f); |
2634 | Vector3 adjustmentForSitPosition = part.SitTargetPosition * part.GetWorldRotation(); | 2639 | Vector3 adjustmentForSitPosition = (part.SitTargetPosition + OffsetPosition) * part.GetWorldRotation(); |
2635 | 2640 | ||
2636 | // XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than | 2641 | // XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than |
2637 | // hardcoding here. | 2642 | // hardcoding here. |