Vineeth@nxOgre
05-05-2008 13:44:31
Hi everyOne,
I have created cloth in NxOgre with the following code
Now I have noticed that I can change the width and height of the cloth but unable to change the vertexDistance.
This is because I wanted a straight tear of the cloth I was using NX_SF_CLOTH_DRAIN and the tear was thick.How can I reduce the vertexDistance of the cloth
I have created cloth in NxOgre with the following code
ClothParams cp("width:10,height:10,vertexDistance:1.0,thickness:0.3, density:0.1, bendingStiffness:1,tear:yes,tearfactor:4, stretchingStiffness:1, dampingCoefficient:1");
cp.meshMaterial="nx.skin";
cp.flags|=NX_CLF_TEARABLE;
mCloth=mScene->createCloth("cloth",NxOgre::Pose(Vector3(0,3,0)),cp);
Now I have noticed that I can change the width and height of the cloth but unable to change the vertexDistance.
This is because I wanted a straight tear of the cloth I was using NX_SF_CLOTH_DRAIN and the tear was thick.How can I reduce the vertexDistance of the cloth