An Extended Position Based Dynamics Method for Cloth Simulation