[Problem] Soft Bodies: no collisions

Stereotype
Posts: 4
Joined: Fri Oct 22, 2010 12:27 pm

[Problem] Soft Bodies: no collisions

Post by Stereotype »

Hi,

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 );
I can draw it but I've any change.

Can you help/explain me? Thanks a lot.

P.S. : Sorry for my bad english, I'm french.
Stereotype
Posts: 4
Joined: Fri Oct 22, 2010 12:27 pm

Re: [Problem] Soft Bodies: no collisions

Post by Stereotype »

UP