adding option to use either visual mesh or collision mesh