mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
Moved applying an impulse to a newly rezzed object to minimise the delay getting the object moving.
This commit is contained in:
@@ -2472,7 +2472,12 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
group.UpdateGroupRotation(rot);
|
||||
//group.ApplyPhysics(m_physicalPrim);
|
||||
group.Velocity = vel;
|
||||
if (group.RootPart.PhysActor != null && group.RootPart.PhysActor.IsPhysical && vel != Vector3.Zero)
|
||||
{
|
||||
group.RootPart.ApplyImpulse(vel, false);
|
||||
group.Velocity = vel;
|
||||
rootPart.ScheduleFullUpdate();
|
||||
}
|
||||
group.CreateScriptInstances(param, true, DefaultScriptEngine, 2);
|
||||
rootPart.ScheduleFullUpdate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user