Doing a convexTest (using a sphereShape) against an object that is a btBvhTriangleMeshShape always results in the hitPoint being ~0.04f away from the actual mesh. This appears to be the default collision margin. I've tried setting the margin on the btBvhTriangleMeshShape and it seems to have no affect.
I did a little digging into the code and it appears that way down inside it's eventually doing the test against each triangle and it's on the fly constructing a triangleshape that has the default margin instead of the margin from the btBvhTriangleMeshShape.
I changed bullet code to make it use the margin from the btBvhTriangleMeshShape down in the low level. The changed files are attached to this message. It's a pretty small change. I hope I did it an acceptable way, and it can be included in future revision.
setMargin() on btBvhTriangleMeshShape is ignored...
-
- Posts: 66
- Joined: Fri Oct 12, 2007 6:28 pm
- Location: San Diego
setMargin() on btBvhTriangleMeshShape is ignored...
You do not have the required permissions to view the files attached to this post.
-
- Posts: 66
- Joined: Fri Oct 12, 2007 6:28 pm
- Location: San Diego
Re: setMargin() on btBvhTriangleMeshShape is ignored...
Any word on this?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: setMargin() on btBvhTriangleMeshShape is ignored...
We have processed the patch, and it will be included in upcoming Bullet 2.69
Thanks a lot for the improvement/fix,
Erwin
Thanks a lot for the improvement/fix,
Erwin