btDbvtVolume needs to be 16-byte aligned, otherwise SIMD version crashes.

This commit is contained in:
erwin.coumans
2008-09-11 20:20:31 +00:00
parent bc8ff765b4
commit 350e2e0393
3 changed files with 5 additions and 4 deletions

View File

@@ -750,7 +750,8 @@ struct btSoftColliders
friction = btMin(psb->m_cfg.kDF,prb->getFriction());
btVector3 mins;
btVector3 maxs;
btDbvtVolume volume;
ATTRIBUTE_ALIGNED16(btDbvtVolume) volume;
pr->getCollisionShape()->getAabb(pr->getInterpolationWorldTransform(),mins,maxs);
volume=btDbvtVolume::FromMM(mins,maxs);
volume.Expand(btVector3(1,1,1)*margin);