Soft bodies passing through Rigid bodies...

Zeal
Posts: 47
Joined: Thu Oct 18, 2007 6:49 am

Re: Soft bodies passing through Rigid bodies...

Post by Zeal »

Ok I am back (got really excited when I heard about the cuda support)! And I think I finally figured it out! It seems like the problem was the way I was initializing my rigid bodies. For the floor, although it is static, I position/rotate it during my app initialization like so...

Code: Select all

btTransform transform; transform.setIdentity();
	transform.setOrigin( btVector3( pos.x, pos.y, pos.z ) );
	transform.setRotation( btQuaternion( quat.x, quat.y, quat.z, quat.w ) );
	
	mBody->setWorldTransform( transform );
Just for fun I tried skipping that part (and just leaving the floor in its default position) and now the soft bodies seem to collide with it just fine! So the real question is, how can you move/rotate a rigid body and not screw up your collisions with soft bodies?
acron^
Posts: 6
Joined: Fri Jan 16, 2009 10:08 am

Re: Soft bodies passing through Rigid bodies...

Post by acron^ »

Got an answer to this yet??