Stopping with millimetre precision (Pawn)

Why wouldn’t it work? BoxTrace with the dimensions of the box. You could even orient the box trace do go diagonal.