aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
authorRobert Adams2012-11-06 12:08:17 -0800
committerRobert Adams2012-11-06 18:16:12 -0800
commitf70a3099b539f046e4d206a3244a3170751060b1 (patch)
treea34410105c25b0fba255465e0a28ad960a1381a6 /OpenSim/Region/Physics
parentBulletSim: only compute linkset mass when membership changes rather than ever... (diff)
downloadopensim-SC_OLD-f70a3099b539f046e4d206a3244a3170751060b1.zip
opensim-SC_OLD-f70a3099b539f046e4d206a3244a3170751060b1.tar.gz
opensim-SC_OLD-f70a3099b539f046e4d206a3244a3170751060b1.tar.bz2
opensim-SC_OLD-f70a3099b539f046e4d206a3244a3170751060b1.tar.xz
BulletSim: recalculate the compound shape bounding box when built.
Diffstat (limited to 'OpenSim/Region/Physics')
-rwxr-xr-xOpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs
index 12c6d7a..3238c85 100755
--- a/OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BSLinksetCompound.cs
@@ -264,6 +264,8 @@ public sealed class BSLinksetCompound : BSLinkset
264 float linksetMass = LinksetMass; 264 float linksetMass = LinksetMass;
265 LinksetRoot.UpdatePhysicalMassProperties(linksetMass); 265 LinksetRoot.UpdatePhysicalMassProperties(linksetMass);
266 266
267 BulletSimAPI.RecalculateCompoundShapeLocalAabb2(LinksetRoot.PhysShape.ptr);
268
267 // DEBUG: see of inter-linkset collisions are causing problems for constraint linksets. 269 // DEBUG: see of inter-linkset collisions are causing problems for constraint linksets.
268 // BulletSimAPI.SetCollisionFilterMask2(LinksetRoot.BSBody.ptr, 270 // BulletSimAPI.SetCollisionFilterMask2(LinksetRoot.BSBody.ptr,
269 // (uint)CollisionFilterGroups.LinksetFilter, (uint)CollisionFilterGroups.LinksetMask); 271 // (uint)CollisionFilterGroups.LinksetFilter, (uint)CollisionFilterGroups.LinksetMask);