SoftBody tear for cloth like in physx SDK

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
Renaud974
Posts: 1
Joined: Thu Jun 24, 2010 5:10 am

SoftBody tear for cloth like in physx SDK

Post 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 ? :'(
Post Reply