mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
* Fixed occasional character drift caused by sim not sending the avatar's final resting velocity.
* Added Smooth moving prim * Added event to PhysicsActor RequestPhysicsterseUpdate to allow physics plugins to be able to schedule a terse update.
This commit is contained in:
@@ -782,10 +782,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
if (UsePhysics)
|
||||
{
|
||||
AddFlag(LLObject.ObjectFlags.Physics);
|
||||
if (PhysActor != null)
|
||||
PhysActor.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
RemFlag(LLObject.ObjectFlags.Physics);
|
||||
if (PhysActor != null)
|
||||
PhysActor.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate;
|
||||
}
|
||||
|
||||
if (IsPhantom)
|
||||
@@ -1067,6 +1072,13 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
public virtual void UpdateMovement()
|
||||
{
|
||||
}
|
||||
#region Events
|
||||
public void PhysicsRequestingTerseUpdate()
|
||||
{
|
||||
SendTerseUpdateToAllClients();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
public virtual void OnGrab(LLVector3 offsetPos, IClientAPI remoteClient)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user