aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSConstraintCollection.cs
diff options
context:
space:
mode:
authorRobert Adams2012-08-10 16:22:44 -0700
committerRobert Adams2012-08-10 16:22:44 -0700
commit0c7ce4fc98d4be185d5a5d83d4cc1c596b5cb1d3 (patch)
treecf1df356454765a2de5920db78146b0f408a00b4 /OpenSim/Region/Physics/BulletSPlugin/BSConstraintCollection.cs
parentBulletSim: Add module names to DetailLog output. Fix some problems with links... (diff)
downloadopensim-SC-0c7ce4fc98d4be185d5a5d83d4cc1c596b5cb1d3.zip
opensim-SC-0c7ce4fc98d4be185d5a5d83d4cc1c596b5cb1d3.tar.gz
opensim-SC-0c7ce4fc98d4be185d5a5d83d4cc1c596b5cb1d3.tar.bz2
opensim-SC-0c7ce4fc98d4be185d5a5d83d4cc1c596b5cb1d3.tar.xz
BulletSim: many, many detailed logging messages for physical linkset
debugging. Linkset bugs fixed where accounting of children would get lost. Moved scene based vehicle tracking logic from prim to the scene. Added GetCollisionFlags2 method to BulletSimAPI. Updated DLLs and SOs.
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSConstraintCollection.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSConstraintCollection.cs b/OpenSim/Region/Physics/BulletSPlugin/BSConstraintCollection.cs
index 397045a..3df2ddc 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSConstraintCollection.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSConstraintCollection.cs
@@ -68,6 +68,8 @@ public class BSConstraintCollection : IDisposable
68 // There is only one constraint between any bodies. Remove any old just to make sure. 68 // There is only one constraint between any bodies. Remove any old just to make sure.
69 RemoveAndDestroyConstraint(cons.Body1, cons.Body2); 69 RemoveAndDestroyConstraint(cons.Body1, cons.Body2);
70 70
71 m_world.scene.DetailLog("{0},BSConstraintCollection.AddConstraint,call,body1={1},body2={2}", BSScene.DetailLogZero, cons.Body1.ID, cons.Body2.ID);
72
71 m_constraints.Add(cons); 73 m_constraints.Add(cons);
72 74
73 return true; 75 return true;
@@ -108,6 +110,7 @@ public class BSConstraintCollection : IDisposable
108 110
109 if (this.TryGetConstraint(body1, body2, out constrain)) 111 if (this.TryGetConstraint(body1, body2, out constrain))
110 { 112 {
113 m_world.scene.DetailLog("{0},BSConstraintCollection.RemoveAndDestroyConstraint,taint,body1={1},body2={2}", BSScene.DetailLogZero, body1.ID, body2.ID);
111 // remove the constraint from our collection 114 // remove the constraint from our collection
112 m_constraints.Remove(constrain); 115 m_constraints.Remove(constrain);
113 // tell the engine that all its structures need to be freed 116 // tell the engine that all its structures need to be freed
@@ -148,10 +151,11 @@ public class BSConstraintCollection : IDisposable
148 151
149 public bool RecalculateAllConstraints() 152 public bool RecalculateAllConstraints()
150 { 153 {
151 foreach (BSConstraint constrain in m_constraints) 154 ForEachConstraint(delegate(BSConstraint constrain)
152 { 155 {
153 constrain.CalculateTransforms(); 156 constrain.CalculateTransforms();
154 } 157 return false;
158 });
155 return true; 159 return true;
156 } 160 }
157 161