Hello
I am using Bullet/GImpact for polygon soup/polygon soup detection collision.
I create a btCollisionWorld, add 2 btCollisionObject with btGImpactMeshShape shapes.
However when the 2 meshes have different number of triangles it crashes in btCollisionWorld::performDiscreteCollisionDetection.
I tried to look at the code and in gim_box_set.h, line 606, I replaced
m_collision_pairs->push_pair(m_boxset1->getNodeData(node0),m_boxset1->getNodeData(node1));
by
m_collision_pairs->push_pair(m_boxset0->getNodeData(node0),m_boxset1->getNodeData(node1));
It doesn't crash anymore and seems to work but I don't know if it is the right way to do this.
Regards,
Thomas
Problem with concave/concave collision detection
-
- Posts: 7
- Joined: Fri Aug 17, 2007 2:47 pm
-
- Posts: 95
- Joined: Fri Mar 31, 2006 7:13 pm
Are you using GIMPACT 0.2 ?
May be this is source of my problme with it...
http://continuousphysics.com/Bullet/php ... php?t=1224
May be this is source of my problme with it...
http://continuousphysics.com/Bullet/php ... php?t=1224
-
- Posts: 7
- Joined: Fri Aug 17, 2007 2:47 pm
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
-
- Posts: 7
- Joined: Fri Aug 17, 2007 2:47 pm
-
- Posts: 7
- Joined: Fri Aug 17, 2007 2:47 pm
Maybe I have the problem mentioned in http://continuousphysics.com/Bullet/php ... php?t=1224
-
- Posts: 109
- Joined: Thu Dec 14, 2006 4:27 pm
- Location: Colombia
Hi Thomas,
Thanks for your feedback.
You've already solve that problem with this bug fix:
Thanks for your contribution. I didn't make enough testing with GIMPACT meshes: the MovingConvaveDemo uses the same Bunny mesh for all objects so I didn't notice that it had problems with different meshes.
Thanks.
Thanks for your feedback.
You've already solve that problem with this bug fix:
Code: Select all
m_collision_pairs->push_pair(m_boxset0->getNodeData(node0),m_boxset1->getNodeData(node1));
Thanks.