aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs')
-rw-r--r--OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
index 2752449..1dbf164 100644
--- a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
+++ b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
@@ -1806,7 +1806,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
1806 d.BodySetAutoDisableSteps(Body, body_autodisable_frames); 1806 d.BodySetAutoDisableSteps(Body, body_autodisable_frames);
1807 d.BodySetAutoDisableAngularThreshold(Body, 0.05f); 1807 d.BodySetAutoDisableAngularThreshold(Body, 0.05f);
1808 d.BodySetAutoDisableLinearThreshold(Body, 0.05f); 1808 d.BodySetAutoDisableLinearThreshold(Body, 0.05f);
1809 d.BodySetDamping(Body, .008f, .005f); 1809 d.BodySetDamping(Body, .004f, .001f);
1810 1810
1811 if (m_targetSpace != IntPtr.Zero) 1811 if (m_targetSpace != IntPtr.Zero)
1812 { 1812 {
@@ -2070,8 +2070,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
2070 _mass = objdmass.mass; 2070 _mass = objdmass.mass;
2071 } 2071 }
2072 2072
2073
2074
2075 private void FixInertia(Vector3 NewPos) 2073 private void FixInertia(Vector3 NewPos)
2076 { 2074 {
2077 d.Matrix3 primmat = new d.Matrix3(); 2075 d.Matrix3 primmat = new d.Matrix3();
@@ -3135,9 +3133,9 @@ namespace OpenSim.Region.PhysicsModule.ubOde
3135 private void changeangvelocity(Vector3 newAngVel) 3133 private void changeangvelocity(Vector3 newAngVel)
3136 { 3134 {
3137 float len = newAngVel.LengthSquared(); 3135 float len = newAngVel.LengthSquared();
3138 if (len > 144.0f) // limit to 12rad/s 3136 if (len > _parent_scene.maxAngVelocitySQ)
3139 { 3137 {
3140 len = 12.0f / (float)Math.Sqrt(len); 3138 len = _parent_scene.maximumAngularVelocity / (float)Math.Sqrt(len);
3141 newAngVel *= len; 3139 newAngVel *= len;
3142 } 3140 }
3143 3141