Vineeth@nxOgre
03-04-2008 06:28:30
cloth = mScene->createCloth("cloth",NxOgre::Pose(Vector3(0,3,0)), cp);
NxMeshData meshData=cloth->getMeshData();
Ogre::SubMesh*sub=myBody->getEntity()->getMesh()->createSubMesh("submesh");
sub->vertexData=new VertexData();
sub->vertexData->vertexCount=static_cast<size_t>(meshData.maxVertices);
.
.hopeless attempt
sub->vertexData->vertexStart=*(dynamic_cast<size_t*>(meshData.indicesBegin));
..
teh above piece of code is what i have written to mak a part of the mesh cloth How can i proceed .i have very little knowledge of ogre meshe.But I have been working on physx and hence know that the cooked mesh writes the NXMESHDATA for the cloth.
basically i want a part of the mesh/entity to behave as a cloth.The cloth that has been created