updated ws_fnc_getPos:
now supports minimal distance from center