Page 1 of 1

SoftBody tear for cloth like in physx SDK

Posted: Thu Jun 24, 2010 5:18 am
by Renaud974
Hi,

Did someone try to make a cloth tear when much force is applied to any node like in this physx video :

http://www.youtube.com/watch?v=zgWur7HaIks

In the demo SoftDemo.cpp, we can see that when we click on the mouse without dragging, the cloth is "refined".

softDemo's mouseFunc( ) :

Code: Select all

if((!m_drag)&&m_cutting&&(m_results.fraction<1.f))
{
	ImplicitSphere	isphere(m_impact,1);
	printf("Mass before: %f\r\n",m_results.body->getTotalMass());
	m_results.body->refine(&isphere,0.0001,true);
	printf("Mass after: %f\r\n",m_results.body->getTotalMass());
}
Is there any other function or parameter that we could use in order to make the cloth tear when the force that is applied between 2 vertex increase to a defined value ?

Or do we have to do it ourself ? :'(