How large is your cloth? Do you use selfcollision?
Hey thanks for your reply.....but i have solved that......I was doing it wrong earlier
Help me in optimizing this...
foreach (RigidBody body in world.RigidBodies)
world.removebody(body);///////it crashes at this point.....i want to remove the body which is not in my view....plz tell
if (body.Shape is SphereShape)
if ((string)body.Tag == "mySphere" )
//SphereShape shape = body.Shape as SphereShape;
GLES1.glColor4f(0.0f, 1.0f, 1.0f, 1.0f);
dsDrawSphere(body.Position, body.Orientation, radius);