I'm new in Bullet but i've already made some simulations with rigid bodies. It works very well.
However, I can't create soft bodies. More precisely, I can't make them "alive".
Here what I've done:
Code: Select all
const btVector3 h=size;
const btVector3 c[]={ position+h*btVector3(-1,-1,-1),
position+h*btVector3(+1,-1,-1),
position+h*btVector3(-1,+1,-1),
position+h*btVector3(+1,+1,-1),
position+h*btVector3(-1,-1,+1),
position+h*btVector3(+1,-1,+1),
position+h*btVector3(-1,+1,+1),
position+h*btVector3(+1,+1,+1)};
this-> body = btSoftBodyHelpers::CreateFromConvexHull(world->getWorldInfo(),c,8,true);
this->body->generateBendingConstraints(2);
world->addSoftBody( this->body );
Can you help/explain me? Thanks a lot.
P.S. : Sorry for my bad english, I'm french.