aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
diff options
context:
space:
mode:
authorRobert Adams2012-08-08 13:48:49 -0700
committerRobert Adams2012-08-08 13:48:49 -0700
commit5ab151c2d69277b8c528b8ebe94d2b0d2312a2fc (patch)
tree2cd84dea4822aa671aa04bbfe94d1fde2e1df0d2 /OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
parentBulletSim: Added avatar capsule scaling for size of avatar. (diff)
downloadopensim-SC_OLD-5ab151c2d69277b8c528b8ebe94d2b0d2312a2fc.zip
opensim-SC_OLD-5ab151c2d69277b8c528b8ebe94d2b0d2312a2fc.tar.gz
opensim-SC_OLD-5ab151c2d69277b8c528b8ebe94d2b0d2312a2fc.tar.bz2
opensim-SC_OLD-5ab151c2d69277b8c528b8ebe94d2b0d2312a2fc.tar.xz
BulletSim: add avatar code to keep avatars from ending up trapped under the terrain
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
index 6f8430c..d19c4b8 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
@@ -296,13 +296,13 @@ public class BSLinkset
296 DetailLog("{0},LinkAChildToMe,taint,root={1},child={2}", m_linksetRoot.LocalID, m_linksetRoot.LocalID, childPrim.LocalID); 296 DetailLog("{0},LinkAChildToMe,taint,root={1},child={2}", m_linksetRoot.LocalID, m_linksetRoot.LocalID, childPrim.LocalID);
297 BSConstraint constrain = m_scene.Constraints.CreateConstraint( 297 BSConstraint constrain = m_scene.Constraints.CreateConstraint(
298 m_scene.World, m_linksetRoot.Body, childPrim.Body, 298 m_scene.World, m_linksetRoot.Body, childPrim.Body,
299 // childRelativePosition, 299 childRelativePosition,
300 // childRelativeRotation, 300 childRelativeRotation,
301 OMV.Vector3.Zero, 301 OMV.Vector3.Zero,
302 OMV.Quaternion.Identity, 302 -childRelativeRotation
303 OMV.Vector3.Zero,
304 OMV.Quaternion.Identity
305 ); 303 );
304
305 // zero linear and angular limits makes the objects unable to move in relation to each other
306 constrain.SetLinearLimits(OMV.Vector3.Zero, OMV.Vector3.Zero); 306 constrain.SetLinearLimits(OMV.Vector3.Zero, OMV.Vector3.Zero);
307 constrain.SetAngularLimits(OMV.Vector3.Zero, OMV.Vector3.Zero); 307 constrain.SetAngularLimits(OMV.Vector3.Zero, OMV.Vector3.Zero);
308 308
@@ -339,7 +339,8 @@ public class BSLinkset
339 // Invoke the detailed logger and output something if it's enabled. 339 // Invoke the detailed logger and output something if it's enabled.
340 private void DebugLog(string msg, params Object[] args) 340 private void DebugLog(string msg, params Object[] args)
341 { 341 {
342 m_scene.Logger.DebugFormat(msg, args); 342 if (m_scene.ShouldDebugLog)
343 m_scene.Logger.DebugFormat(msg, args);
343 } 344 }
344 345
345 // Invoke the detailed logger and output something if it's enabled. 346 // Invoke the detailed logger and output something if it's enabled.