aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
diff options
context:
space:
mode:
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.