if (path.hitTest(man.x, tgtY, true)) { man.y = tgtY; }
if (hitTest(man, path)) { man.y = tgtY; man.x = tgtX; }