From 800081270020e60c612cee9521d18bb4388afdd5 Mon Sep 17 00:00:00 2001 From: Teravus Ovares (Dan Olivares) Date: Sat, 15 Aug 2009 13:10:10 -0400 Subject: * part one of adding physics combining --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/Physics/OdePlugin') diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index e435ac1..81f200a 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -313,6 +313,9 @@ namespace OpenSim.Region.Physics.OdePlugin private volatile int m_global_contactcount = 0; + private Vector3 m_worldOffset = Vector3.Zero; + private Vector2 m_worldExtents = new Vector2((int)Constants.RegionSize, (int)Constants.RegionSize); + private ODERayCastRequestManager m_rayCastManager; /// @@ -1653,6 +1656,7 @@ namespace OpenSim.Region.Physics.OdePlugin private PhysicsActor AddPrim(String name, PhysicsVector position, PhysicsVector size, Quaternion rotation, IMesh mesh, PrimitiveBaseShape pbs, bool isphysical) { + PhysicsVector pos = new PhysicsVector(position.X, position.Y, position.Z); //pos.X = position.X; //pos.Y = position.Y; @@ -2555,6 +2559,9 @@ namespace OpenSim.Region.Physics.OdePlugin if (framecount >= int.MaxValue) framecount = 0; + if (m_worldOffset != Vector3.Zero) + return 0; + framecount++; float fps = 0; @@ -3377,6 +3384,8 @@ namespace OpenSim.Region.Physics.OdePlugin return waterlevel; } + + public override void SetWaterLevel(float baseheight) { waterlevel = baseheight; -- cgit v1.1