mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
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
This commit is contained in:
@@ -622,9 +622,14 @@ namespace OpenSim.Region.Framework.Scenes
|
|||||||
// "[SCENE PRESENCE]: Set velocity {0} for {1} in {2} via getting Velocity!",
|
// "[SCENE PRESENCE]: Set velocity {0} for {1} in {2} via getting Velocity!",
|
||||||
// m_velocity, Name, Scene.RegionInfo.RegionName);
|
// m_velocity, Name, Scene.RegionInfo.RegionName);
|
||||||
}
|
}
|
||||||
|
else if (ParentPart != null)
|
||||||
|
{
|
||||||
|
return ParentPart.ParentGroup.Velocity;
|
||||||
|
}
|
||||||
|
|
||||||
return m_velocity;
|
return m_velocity;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (PhysicsActor != null)
|
if (PhysicsActor != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user