I'll explain why even if I didn't want to, why I had to add in X to determine the depth sorting

I’ll explain this the best way I can
It was because in situations like this with just only Z and Y , B would be drawn over A, which might not seem as an issue, but the thing is that when the player is over B, it’ll also be drawn over A since it’s considered to be over A when the player should be considered to be behind A.
Which I did change it up at first but that meant that when the player is on a slope, it’ll also would be under the slope since it’s not on the top of the slope.
Which leads into X, basically I made it so bow it would actually check if there’s something over it instead of if there’s something within Z wise over it, because it would cause a bit of issues with the way that things are drawn like before.
But regardless, it works now
0 comments