Hello,
I used btGImpactMeshShape to make a couple of mesh, and found out that the first time the meshes touches each other, they bounce with a high force (feels like something exploded between them when they've touched each other). This only happens on the first time they touch each other, after which the collision will be normal.
Any idea why this problem occurs? If more information is needed, please let me know.
Thanks a lot.
btGImpactMeshShape bouncing for first collision?
-
- Posts: 26
- Joined: Mon Feb 09, 2009 10:07 am
-
- Posts: 109
- Joined: Thu Dec 14, 2006 4:27 pm
- Location: Colombia
Re: btGImpactMeshShape bouncing for first collision?
Hi, I've found what is causing that problem.
For solving this, just uncomment the line 301 at file btGImpactCollisionAlgorithm.h. That enables the GJK algorithm for triangle collision. It was set for using SAT by default, which in some cases has bugs.
For solving this, just uncomment the line 301 at file btGImpactCollisionAlgorithm.h. That enables the GJK algorithm for triangle collision. It was set for using SAT by default, which in some cases has bugs.
-
- Posts: 26
- Joined: Mon Feb 09, 2009 10:07 am
Re: btGImpactMeshShape bouncing for first collision?
It helped for the non-bouncing stuffs, but the created shape became extremely unstable(ie. it shakes indefinitely on the ground), any idea?
-
- Posts: 26
- Joined: Mon Feb 09, 2009 10:07 am
Re: btGImpactMeshShape bouncing for first collision?
The problem is with the margin of the shape, set it to 0.05, everything works.
Bullet rocks, GImpact rocks as well!!!
Thanks Erwin, projectileman, and the whole bullet team!!!
Bullet rocks, GImpact rocks as well!!!
Thanks Erwin, projectileman, and the whole bullet team!!!
-
- Posts: 26
- Joined: Mon Feb 09, 2009 10:07 am
Re: btGImpactMeshShape bouncing for first collision?
Hello projectileman,
I'm wondering when can we use SAT instead of GJK in GImpact? Looking forward to this
Thanks
I'm wondering when can we use SAT instead of GJK in GImpact? Looking forward to this
Thanks
-
- Posts: 1
- Joined: Fri Jul 10, 2009 1:05 pm
Re: btGImpactMeshShape bouncing for first collision?
Hi,
I also got this problem and the fix indeed worked. I was wondering if the fix is going to be part of the next release ? Also, are there any side effects to this ?
Thank you.
Pierre
I also got this problem and the fix indeed worked. I was wondering if the fix is going to be part of the next release ? Also, are there any side effects to this ?
Thank you.
Pierre
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: btGImpactMeshShape bouncing for first collision?
I'm happy to enable this setting by default
Any objections, projectileman?
Thanks,
Erwin
Code: Select all
#define BULLET_TRIANGLE_COLLISION 1
Thanks,
Erwin
-
- Posts: 5
- Joined: Fri Sep 16, 2011 11:05 pm
Re: btGImpactMeshShape bouncing for first collision?
This setting actually took me quite some time to debug, I agree that it should be enabled by default. Furthermore, I found that the problem is fixed by placing the btGImpactMeshShape inside a btCompoundShape (I know you aren't supposed to).
Thanks,
Steve
Thanks,
Steve