BulletSim: recalculate the compound shape bounding box when built.

integration
Robert Adams 2012-11-06 12:08:17 -08:00
parent 702fd1e094
commit f70a3099b5
1 changed files with 2 additions and 0 deletions

View File

@ -264,6 +264,8 @@ public sealed class BSLinksetCompound : BSLinkset
float linksetMass = LinksetMass;
LinksetRoot.UpdatePhysicalMassProperties(linksetMass);
BulletSimAPI.RecalculateCompoundShapeLocalAabb2(LinksetRoot.PhysShape.ptr);
// DEBUG: see of inter-linkset collisions are causing problems for constraint linksets.
// BulletSimAPI.SetCollisionFilterMask2(LinksetRoot.BSBody.ptr,
// (uint)CollisionFilterGroups.LinksetFilter, (uint)CollisionFilterGroups.LinksetMask);