Hello your e1513 happens when this line runs for a second time...

pXent_cloth(my,pole,NX_CLOTH_ATTACHMENT_TWOWAY,0,0,cloth_options);

This replace solves the error
pXent_cloth(my,pole,NX_CLOTH_ATTACHMENT_TWOWAY,NULL,NULL,CLOTH_DEFAULT);

So then the problem is with this array set-up
Code:
// setup flag cloth	
	var cloth_options[40];
	memcpy(cloth_options,CLOTH_DEFAULT,40*sizeof(var));
	vec_set(cloth_options[25],vector(-10,20,0));  // external acceleration
	vec_set(cloth_options[28],vector(5,10,5));  // random wind acceleration
	cloth_options[9] = 4; // Tear Factor
	cloth_options[37] |= NX_CLF_GRAVITY|NX_CLF_BENDING|NX_CLF_COLLISION_TWOWAY|NX_CLF_SELFCOLLISION|NX_CLF_TEARABLE|NX_CLF_BENDING_ORTHO;
	pXent_cloth(my,pole,NX_CLOTH_ATTACHMENT_TWOWAY,NULL,NULL,cloth_options);




EDIT - MORE UPDATES - remove the pointer to the pole solves the crash... Working on a fix.. There is a error with the called pointer.
pXent_cloth(my,NULL,NX_CLOTH_ATTACHMENT_TWOWAY,NULL,NULL,cloth_options);

EDIT- Update - CRASH FIXED
pXent_cloth(my,pole,0,NULL,NULL,cloth_options);
this flag cause a crash NX_CLOTH_ATTACHMENT_TWOWAY
MANUAL-
Quote:
When using two way interaction, it is important to set the appropriate mass of the attached objects. If an object with a very low or high mass density is attached to a cloth, the simulation may behave poorly.

Why the flag my crash the phyx engine.

Last edited by Malice; 10/26/15 18:56.