aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
diff options
context:
space:
mode:
authorRobert Adams2012-09-23 18:39:46 -0700
committerRobert Adams2012-09-27 22:01:37 -0700
commitd016051fa028a485b09fac47b3fa3d8fd08e207a (patch)
tree8f483976bb64b1328439b76754675126b09943b0 /OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
parentBulletSim: fix regression that caused cylindar shapes to have a box collision... (diff)
downloadopensim-SC_OLD-d016051fa028a485b09fac47b3fa3d8fd08e207a.zip
opensim-SC_OLD-d016051fa028a485b09fac47b3fa3d8fd08e207a.tar.gz
opensim-SC_OLD-d016051fa028a485b09fac47b3fa3d8fd08e207a.tar.bz2
opensim-SC_OLD-d016051fa028a485b09fac47b3fa3d8fd08e207a.tar.xz
BulletSim: renamed members of BulletShape, BulletSim and BulletBody
so the members case is consistant. Caused modifications everywhere. New logic in BSShapeCollection to track use and sharing of shapes. I just reslized, though, that shapes cannot be shared because the shape's UserPointer is the localID of the prim and is required for tracking collisions. More changes coming. Added DuplicateCollisionShape2() to API and changed BuildNativeShape2 to take a ShapeData structure so don't have to pass so many parameters. This matches the latest version of BulletSim.dll. Additions and removal of DetailLog() statements for debugging.
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
index 1e8fe52..84a7fac 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinkset.cs
@@ -282,10 +282,10 @@ public class BSLinkset
282 { 282 {
283 // If this is a multiple object linkset, set everybody's center of mass to the set's center of mass 283 // If this is a multiple object linkset, set everybody's center of mass to the set's center of mass
284 OMV.Vector3 centerOfMass = ComputeLinksetCenterOfMass(); 284 OMV.Vector3 centerOfMass = ComputeLinksetCenterOfMass();
285 BulletSimAPI.SetCenterOfMassByPosRot2(LinksetRoot.BSBody.Ptr, centerOfMass, OMV.Quaternion.Identity); 285 BulletSimAPI.SetCenterOfMassByPosRot2(LinksetRoot.BSBody.ptr, centerOfMass, OMV.Quaternion.Identity);
286 foreach (BSPhysObject child in m_children) 286 foreach (BSPhysObject child in m_children)
287 { 287 {
288 BulletSimAPI.SetCenterOfMassByPosRot2(child.BSBody.Ptr, centerOfMass, OMV.Quaternion.Identity); 288 BulletSimAPI.SetCenterOfMassByPosRot2(child.BSBody.ptr, centerOfMass, OMV.Quaternion.Identity);
289 } 289 }
290 /* 290 /*
291 // The root prim takes on the weight of the whole linkset 291 // The root prim takes on the weight of the whole linkset
@@ -442,7 +442,7 @@ public class BSLinkset
442 PhysicsScene.Constraints.RemoveAndDestroyConstraint(rootPrim.BSBody, childPrim.BSBody); 442 PhysicsScene.Constraints.RemoveAndDestroyConstraint(rootPrim.BSBody, childPrim.BSBody);
443 443
444 // Make the child refresh its location 444 // Make the child refresh its location
445 BulletSimAPI.PushUpdate2(childPrim.BSBody.Ptr); 445 BulletSimAPI.PushUpdate2(childPrim.BSBody.ptr);
446 } 446 }
447 447
448 // Remove linkage between myself and any possible children I might have 448 // Remove linkage between myself and any possible children I might have