aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
diff options
context:
space:
mode:
authorRobert Adams2012-10-10 09:43:46 -0700
committerRobert Adams2012-10-11 14:01:14 -0700
commit919569f6ecd5fe84d0f5b0981a48b4808a44f7ad (patch)
treefdd01ac155d477e7a55ee148527a6107add0c7a8 /OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
parentBulletSim: cosmetic changes (comments and renaming). Give mass to terrain to ... (diff)
downloadopensim-SC-919569f6ecd5fe84d0f5b0981a48b4808a44f7ad.zip
opensim-SC-919569f6ecd5fe84d0f5b0981a48b4808a44f7ad.tar.gz
opensim-SC-919569f6ecd5fe84d0f5b0981a48b4808a44f7ad.tar.bz2
opensim-SC-919569f6ecd5fe84d0f5b0981a48b4808a44f7ad.tar.xz
BulletSim: Change defaults for constraint CFM and ERP to make large linksets more rigid. Remove mass calculation for terrain (it should stay a static object).
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/BSScene.cs')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BSScene.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
index 50091cc..617bdb4 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSScene.cs
@@ -1099,12 +1099,12 @@ public class BSScene : PhysicsScene, IPhysicsParameters
1099 (s) => { return s.m_params[0].linkConstraintTransMotorMaxForce; }, 1099 (s) => { return s.m_params[0].linkConstraintTransMotorMaxForce; },
1100 (s,p,l,v) => { s.m_params[0].linkConstraintTransMotorMaxForce = v; } ), 1100 (s,p,l,v) => { s.m_params[0].linkConstraintTransMotorMaxForce = v; } ),
1101 new ParameterDefn("LinkConstraintCFM", "Amount constraint can be violated. 0=no violation, 1=infinite. Default=0.1", 1101 new ParameterDefn("LinkConstraintCFM", "Amount constraint can be violated. 0=no violation, 1=infinite. Default=0.1",
1102 0.1f, 1102 0.001f,
1103 (s,cf,p,v) => { s.m_params[0].linkConstraintCFM = cf.GetFloat(p, v); }, 1103 (s,cf,p,v) => { s.m_params[0].linkConstraintCFM = cf.GetFloat(p, v); },
1104 (s) => { return s.m_params[0].linkConstraintCFM; }, 1104 (s) => { return s.m_params[0].linkConstraintCFM; },
1105 (s,p,l,v) => { s.m_params[0].linkConstraintCFM = v; } ), 1105 (s,p,l,v) => { s.m_params[0].linkConstraintCFM = v; } ),
1106 new ParameterDefn("LinkConstraintERP", "Amount constraint is corrected each tick. 0=none, 1=all. Default = 0.2", 1106 new ParameterDefn("LinkConstraintERP", "Amount constraint is corrected each tick. 0=none, 1=all. Default = 0.2",
1107 0.2f, 1107 0.8f,
1108 (s,cf,p,v) => { s.m_params[0].linkConstraintERP = cf.GetFloat(p, v); }, 1108 (s,cf,p,v) => { s.m_params[0].linkConstraintERP = cf.GetFloat(p, v); },
1109 (s) => { return s.m_params[0].linkConstraintERP; }, 1109 (s) => { return s.m_params[0].linkConstraintERP; },
1110 (s,p,l,v) => { s.m_params[0].linkConstraintERP = v; } ), 1110 (s,p,l,v) => { s.m_params[0].linkConstraintERP = v; } ),