optional res argument for raycasting lets you choose between cm and mm easily (I hope!)