From 4eb4082e27f76e5bd4795d71acf492076af33161 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Mon, 19 Nov 2007 15:59:05 +0000 Subject: * Added noisy debug information on the Verbose console to help debugging oddly placed prim. --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index b40a98f..d155f05 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -599,7 +599,9 @@ namespace OpenSim.Region.Physics.OdePlugin public IntPtr calculateSpaceForGeom(PhysicsVector pos) { int[] xyspace = calculateSpaceArrayItemFromPos(pos); + OpenSim.Framework.Console.MainLog.Instance.Verbose("Physics", "Attempting to use arrayItem: " + xyspace[0].ToString() + "," + xyspace[1].ToString()); IntPtr locationbasedspace = staticPrimspace[xyspace[0],xyspace[1]]; + //locationbasedspace = space; return locationbasedspace; } @@ -1439,6 +1441,24 @@ namespace OpenSim.Region.Physics.OdePlugin _velocity = new PhysicsVector(); _position = pos; + + //if (_position.X > 257) + //{ + // _position.X = 257; + //} + //if (_position.X < 0) + //{ + // _position.X = 0; + //} + //if (_position.Y > 257) + //{ + // _position.Y = 257; + // } + //if (_position.Y < 0) + //{ + // _position.Y = 0; + //} + _size = size; _acceleration = new PhysicsVector(); m_rotationalVelocity = PhysicsVector.Zero; -- cgit v1.1