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.4-extended
Justin Clark-Casey (justincc) 2012-12-15 00:30:17 +00:00
parent 548deb9153
commit 2e02f49fd9
1 changed files with 5 additions and 2 deletions

View File

@ -2256,11 +2256,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()