Update cloth.cpp