diff options
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. |