Regarding Triangle mesh collision.

Post Reply
sarbartha
Posts: 5
Joined: Fri Apr 19, 2013 5:18 am

Regarding Triangle mesh collision.

Post by sarbartha »

I am new to this library. I am working on cloth solid collision.

I want to use this library to detect cllision between a solid object and the cloth mesh.

Both the solid objects and cloth are triangle mesh. Can anybody help me how to initialize the btRigidBody for the solid object and also for cloth?
norbie
Posts: 21
Joined: Mon Feb 11, 2013 1:57 pm

Re: Regarding Triangle mesh collision.

Post by norbie »

I think first you should take a look at the App_SoftDemo demo project of bullet. There are a lot of small demos integrated into this project. I think demo #7 might be useful for you (you can change demo number with the [] keys), where a cloth mesh is lying/hanging on a capsule shape. You can find the initialization code for it in Init_ClothAttach function in SoftDemo.cpp.
Then you can experiment with replacing the capsule shape with e.g. a btGImpactMeshShape.

Is this information enough for you to start with?
Post Reply