I have a player sprite that animates when it moves using a spritesheet. I want to add a system to equip tools/weapons or clothes. However, when adding the items as children of the player, the transforms update together as expected, but the tools look out of place, since they are simply on-top of the player, rather than being layered below the players hand, but still on top of the rest of the sprite.
I'm wondering how people go about layering equipment with the player, and other equipment?
Specifically, How do I achieve the look where a player is "holding" an item, in that, part of the item is behind the player sprite (behind the hand in this case), and the rest is in front.
Do I need to split up my player sprite into multiple parts to handle their z coordinate individually, or maybe i apply a rotation to the equipment so part of it cuts through the player hand and is "behind"? Or is the correct approach to "cut off" part of the sprite that should be hidden behind the player?