2d concave collision shapes

marios
Posts: 52
Joined: Mon Jul 19, 2010 3:11 am

2d concave collision shapes

Post by marios »

is this possible to create in bullet engine, concave 2d static collision object? I have tried with btBvhTriangleMeshShape with z-coordinate = 0, but box2dshape don't collide with it. btConvex2dShape works fine, but it would be great to create concave. Any ideas?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: 2d concave collision shapes

Post by Erwin Coumans »

For concave 2D shapes it is recommended to do convex decomposition, and store multiple btConvex2dShape in a btCompoundShape.

Thanks,
Erwin