aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
index 5920838..46251de 100644
--- a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
+++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
@@ -175,7 +175,7 @@ namespace OpenSim.Region.Physics.OdePlugin
175 175
176 const d.ContactFlags comumContactFlags = d.ContactFlags.SoftERP | d.ContactFlags.SoftCFM |d.ContactFlags.Approx1 | d.ContactFlags.Bounce; 176 const d.ContactFlags comumContactFlags = d.ContactFlags.SoftERP | d.ContactFlags.SoftCFM |d.ContactFlags.Approx1 | d.ContactFlags.Bounce;
177 const float MaxERP = 0.8f; 177 const float MaxERP = 0.8f;
178 const float minERP = 0.1f; 178 const float minERP = 0.2f;
179 const float comumContactCFM = 0.0001f; 179 const float comumContactCFM = 0.0001f;
180 180
181 float frictionMovementMult = 0.8f; 181 float frictionMovementMult = 0.8f;
@@ -408,7 +408,7 @@ namespace OpenSim.Region.Physics.OdePlugin
408// checkThread(); 408// checkThread();
409 mesher = meshmerizer; 409 mesher = meshmerizer;
410 m_config = config; 410 m_config = config;
411/* 411
412 string ode_config = d.GetConfiguration("ODE"); 412 string ode_config = d.GetConfiguration("ODE");
413 if (ode_config != null && ode_config != "") 413 if (ode_config != null && ode_config != "")
414 { 414 {
@@ -419,7 +419,7 @@ namespace OpenSim.Region.Physics.OdePlugin
419 OdeUbitLib = true; 419 OdeUbitLib = true;
420 } 420 }
421 } 421 }
422*/ 422
423 /* 423 /*
424 if (region != null) 424 if (region != null)
425 { 425 {
@@ -921,6 +921,8 @@ namespace OpenSim.Region.Physics.OdePlugin
921 cfm = 0.0001f / cfm; 921 cfm = 0.0001f / cfm;
922 if (cfm > 0.01f) 922 if (cfm > 0.01f)
923 cfm = 0.01f; 923 cfm = 0.01f;
924 else if (cfm < 0.0001f)
925 cfm = 0.0001f;
924 926
925 if ((Math.Abs(p2.Velocity.X - p1.Velocity.X) > 0.1f || Math.Abs(p2.Velocity.Y - p1.Velocity.Y) > 0.1f)) 927 if ((Math.Abs(p2.Velocity.X - p1.Velocity.X) > 0.1f || Math.Abs(p2.Velocity.Y - p1.Velocity.Y) > 0.1f))
926 mu *= frictionMovementMult; 928 mu *= frictionMovementMult;
@@ -947,6 +949,8 @@ namespace OpenSim.Region.Physics.OdePlugin
947 cfm = 0.0001f / cfm; 949 cfm = 0.0001f / cfm;
948 if (cfm > 0.01f) 950 if (cfm > 0.01f)
949 cfm = 0.01f; 951 cfm = 0.01f;
952 else if (cfm < 0.0001f)
953 cfm = 0.0001f;
950 954
951 if (d.GeomGetClass(g1) == d.GeomClassID.TriMeshClass) 955 if (d.GeomGetClass(g1) == d.GeomClassID.TriMeshClass)
952 { 956 {