Paper2D Sprite Sorting?

For anyone thinking about dynamically changing sort order (so that you can be behind the trunk for example) try using a dot product and swap sort order with the object that is “behind” you or in front of you. Also, gimme me golden shovel