increase avatars collisions report to 10 per sec, Stopped sound on avatar to volumedetect collision

avinationmerge
UbitUmarov 2012-05-17 04:41:46 +01:00
parent 038986baff
commit e4231e95a9
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ namespace OpenSim.Region.Framework.Scenes
SceneObjectPart otherPart = part.ParentGroup.Scene.GetSceneObjectPart(Id);
if (otherPart != null)
{
if (otherPart.CollisionSound == part.invalidCollisionSoundUUID)
if (otherPart.CollisionSound == part.invalidCollisionSoundUUID || otherPart.VolumeDetectActive)
continue;
if (otherPart.CollisionSound != UUID.Zero)
otherPart.SendCollisionSound(otherPart.CollisionSound, otherPart.CollisionSoundVolume);

View File

@ -3425,7 +3425,7 @@ namespace OpenSim.Region.Framework.Scenes
//PhysicsActor.OnRequestTerseUpdate += SendTerseUpdateToAllClients;
PhysicsActor.OnCollisionUpdate += PhysicsCollisionUpdate;
PhysicsActor.OnOutOfBounds += OutOfBoundsCall; // Called for PhysicsActors when there's something wrong
PhysicsActor.SubscribeEvents(500);
PhysicsActor.SubscribeEvents(100);
PhysicsActor.LocalID = LocalId;
}