minor: If the physics module tells us that an object has gone out of bounds, more helpfully log the name, id, position and region of that object.

0.7.5-pf-bulletsim
Justin Clark-Casey (justincc) 2012-12-15 00:30:17 +00:00
parent 56ec177b3b
commit 494e6a5f11
1 changed files with 5 additions and 2 deletions

View File

@ -2266,11 +2266,14 @@ namespace OpenSim.Region.Framework.Scenes
public void PhysicsOutOfBounds(Vector3 pos)
{
m_log.Error("[PHYSICS]: Physical Object went out of bounds.");
// Note: This is only being called on the root prim at this time.
m_log.ErrorFormat(
"[SCENE OBJECT PART]: Physical object {0}, localID {1} went out of bounds at {2} in {3}. Stopping at {4} and making non-physical.",
Name, LocalId, pos, ParentGroup.Scene.Name, AbsolutePosition);
RemFlag(PrimFlags.Physics);
DoPhysicsPropertyUpdate(false, true);
//ParentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
}
public void PhysicsRequestingTerseUpdate()