I’m not sure I understand correctly but if you’re looking to get the movement direction of the pawn you can do something like this: