Correct energy calculation to include the mass of the object.

Fixes Mantis #3006
0.6.3-post-fixes
idb 2009-01-19 19:15:55 +00:00
parent 4823f2ae8e
commit a47d851295
1 changed files with 1 additions and 1 deletions

View File

@ -2473,7 +2473,7 @@ namespace OpenSim.Region.Environment.Scenes
//group.ApplyPhysics(m_physicalPrim);
if (group.RootPart.PhysActor != null && group.RootPart.PhysActor.IsPhysical && vel != Vector3.Zero)
{
group.RootPart.ApplyImpulse(vel, false);
group.RootPart.ApplyImpulse((vel * group.GetMass()), false);
group.Velocity = vel;
rootPart.ScheduleFullUpdate();
}