In this demo: Software Testing: All You Need to Know for Quality Assurance. you can see a character sprite with a red face. If you press the down and right arrow on your keyboard when the game loads up and run it you’ll notice the players face will disappear after it reaches a certain point.
The player face is a child of the body and its z position is offset by -0.05f of the body, I’ve checked and have found in terms of z coordinates it’s always in front of the body, yet it still disappears behind the body.
Any ideas why this is happening and how I could fix it? I’d like to keep rendering in perspective view though, I know orthographic rendering would probably fix this.