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=7175bullet-2.82
parent
bb7c88805a
commit
473c559478
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue