From a47d8512956f3da8ad64dfee7c0a5696d11c232d Mon Sep 17 00:00:00 2001 From: idb Date: Mon, 19 Jan 2009 19:15:55 +0000 Subject: Correct energy calculation to include the mass of the object. Fixes Mantis #3006 --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index ed299eb..404a7c3 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -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(); } -- cgit v1.1