Add support for part/triangle id for GIMPACT.

Thanks Alex Silverman:
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2032
This commit is contained in:
erwin.coumans
2008-04-07 19:37:04 +00:00
parent f9b22b36aa
commit c1a10fd1fe
2 changed files with 35 additions and 3 deletions

View File

@@ -783,6 +783,8 @@ public:
{
btTriangleShapeEx tri1(triangle[0],triangle[1],triangle[2]);
tri1.setMargin(margin);
algorithm->setPart1(partId);
algorithm->setFace1(triangleIndex);
algorithm->gimpact_vs_shape(
body0,body1,gimpactshape0,&tri1,swapped);
}