An iterative approach for cone complementarity problems for nonsmooth dynamics