Bullet Collision btConvexTriangleMeshShape

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Bullet Collision btConvexTriangleMeshShape

Post by Nadro »

Hi. I need use btConvexTriangleMeshShape for Collision detection, but How Can convert IMesh to btTriangleMesh??

Code: Select all

btTriangleMesh* BMesh2 = [HOW FUNCTION](mesh0->getMesh(0));
btCollisionShape* pObjectShape = new btConvexTriangleMeshShape(BMesh2);
Maybe some tutorial?:)
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post by Nadro »

OK. I solved my problem:)
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Post by GameDude »

Please edit your posts instead of double posting
Post Reply