Box2d: Why not concave shapes?

Here's the place to get help and discuss features. The focus is on the C++ version, but generic questions are welcome.
nichlaspro
Posts: 1
Joined: Thu Jan 05, 2017 3:23 am

Box2d: Why not concave shapes?

Postby nichlaspro » Sat Jan 07, 2017 3:51 pm

Hello there,

Concave shapes seem to not be supported in box2d but I have not found any explanation about why they are not supported and the fact that you have to create multiple convex shapes in order to achieve the wanted shape. Wouldn't it be easier to just support concave shapes so that you only would have to create one single shape?

So could someone smart please try to explain why concave shapes are not supported in box2d, like the technical part etc.? And doesn't it take up more memory to have multiple shapes instead of one?

This could really make the world make more sense to me!

rahul.meda
Posts: 2
Joined: Wed Mar 01, 2017 2:54 pm

Re: Box2d: Why not concave shapes?

Postby rahul.meda » Wed Mar 01, 2017 6:29 pm

Collision detection algorithms such as SAT, GJK are limited to convex shapes
So concave shapes need other methods such as compositing shapes etc.

Hope that helps


Return to “General Discussion”



Who is online

Users browsing this forum: Bing [Bot] and 14 guests