mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Correct energy calculation to include the mass of the object.
Fixes Mantis #3006
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user