im making a kinda 3d game
but ive got a small problem
say theres a box
when the player is behind the box the zdepth should be high
when the player is in front the zdepth should be low
its a kinda game with the layout of habbo hotel
the diagonal walk ect
so wt would i do?