Wraping geometry with holes

jomunoz

24-10-2007 14:07:42

Hi,

I'm using NxOgre for my project and i'm having trouble with geometry that has holes in it (like the gate in the picture bellow), the thing is that i used ConvexShape for this type of geometry hoping that it will wrap the geometry keeping the hole, but it doesn't.

So i just wanted to ask how others create the Shape for this type of geometry.

betajaen

24-10-2007 14:22:24

It wouldn't because then it would be a concave shape not a convex. What you need to do, is split the physics model into three convexes. The sides and the top, and use them together with a CompoundShape.

Otherwise, if you're not planning to move it, you could use a trianglemesh shape instead.

jomunoz

27-10-2007 03:18:46

Thanks betajaen, triangle mesh shape is just what i needed to use.