aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorubit2012-07-09 17:53:26 +0200
committerubit2012-07-09 17:53:26 +0200
commit6dab81aa7be6ed442b244a28fc32d069d2dcc673 (patch)
tree4245db04b4d4bb9d4973abb19e08c3873c36c0ab
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parent log ODE lib configuration (diff)
downloadopensim-SC_OLD-6dab81aa7be6ed442b244a28fc32d069d2dcc673.zip
opensim-SC_OLD-6dab81aa7be6ed442b244a28fc32d069d2dcc673.tar.gz
opensim-SC_OLD-6dab81aa7be6ed442b244a28fc32d069d2dcc673.tar.bz2
opensim-SC_OLD-6dab81aa7be6ed442b244a28fc32d069d2dcc673.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
-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 {