btConcaveShape and internal edges

Post Reply
gjaegy
Posts: 178
Joined: Fri Apr 18, 2008 2:20 pm

btConcaveShape and internal edges

Post by gjaegy »

Hi,

I am currently struggling trying to avoid collision being detected between a convex hull decomposition shape and my terrain (custom shape derived from btConcaveShape).

The issue is pretty intense when using small triangles, as seen in that video:
https://youtu.be/MWw1ywZUsrI

When using bigger triangles, the objects manage to at least come to a deactivated state, but false-positive collision are still detected.

I have implemented a custom shape, derived from btConcaveShape. I haven't however found how I could filter out those internal edges collision using that shape.

I am aware of the btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK flag + gContactAddedCallback + btAdjustInternalEdgeContacts method for triangle meshes, but have no idea how to apply the equivalent to my custom shape, where I basically call "callback->processTriangle()" for each relevant triangle in the processAllTriangles() method.

Is there any option to get rid of the internal edges detected contact points ? Thanks a lot !!
Post Reply