mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Merge branch 'master' into careminster
This commit is contained in:
@@ -4888,6 +4888,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (pushAllowed)
|
||||
{
|
||||
float distance = (PusheePos - m_host.AbsolutePosition).Length();
|
||||
@@ -4917,17 +4918,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
applied_linear_impulse *= scaling_factor;
|
||||
|
||||
}
|
||||
|
||||
if (pusheeIsAvatar)
|
||||
{
|
||||
if (pusheeav != null)
|
||||
{
|
||||
if (pusheeav.PhysicsActor != null)
|
||||
PhysicsActor pa = pusheeav.PhysicsActor;
|
||||
|
||||
if (pa != null)
|
||||
{
|
||||
if (local != 0)
|
||||
{
|
||||
applied_linear_impulse *= m_host.GetWorldRotation();
|
||||
}
|
||||
pusheeav.PhysicsActor.AddForce(applied_linear_impulse, true);
|
||||
|
||||
pa.AddForce(applied_linear_impulse, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user