|
Hi, I'm using Jolt Physics to develop a small ball rolling game. However, when the ball rolls from the Height FieldShape to the MeshShape area, GhostCollision occurs where the ball bounces, and the document confirmed that you can use the mEnhanced InternalEdgeRemoval after tying it with CompoundShape, but in my situation, GhostCollision is still occurring. For the exact question, I've done a similar reproduction on the Sample app of Jolt Physics, What should I do in this case? Attached is a reproduction video from the Sample app below. The version currently in use is 5.5.1. Jolt.Physics.Samples.2026-06-09.16-41-50.mp4 |
Replies: 1 comment 1 reply
They can be grouped. Looking at the video, I see that I didn't document a requirement that I thought was obvious (but isn't): The algorithm can only match triangles that share the same edge (with the same vertices). In your mesh large triangles connect to small triangles, meaning there are T-edges. The algorithm cannot connect these, so the 'enhanced internal edge removal' doesn't work here. I think it should work if you ensure that the tesselation is the same on both sides. |
They can be grouped.
Looking at the video, I see that I didn't document a requirement that I thought was obvious (but isn't): The algorithm can only match triangles that share the same edge (with the same vertices). In your mesh large triangles connect to small triangles, meaning there are T-edges. The algorithm cannot connect these, so the 'enhanced internal edge removal' doesn't work here. I think it should work if you ensure that the tesselation is the same on both sides.