ApplyImpulse now forwards impulse in both local and global modes.
parent
87ac46c1c5
commit
5eb433ae26
|
@ -1156,13 +1156,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
Vector3 newimpulse = AXimpulsei * AXgrot;
|
Vector3 newimpulse = AXimpulsei * AXgrot;
|
||||||
impulse = new PhysicsVector(newimpulse.X, newimpulse.Y, newimpulse.Z);
|
impulse = new PhysicsVector(newimpulse.X, newimpulse.Y, newimpulse.Z);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
|
|
||||||
if (m_parentGroup != null)
|
if (m_parentGroup != null)
|
||||||
{
|
{
|
||||||
m_parentGroup.applyImpulse(impulse);
|
m_parentGroup.applyImpulse(impulse);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue