- Home /
Why is this clipping/overlap occurring between game objects?
Video of the issue:
You can see in the video the church begins to overlap on top of the house when it reaches a certain angle relative to the camera. Why is this happening? For more context, these game objects are planes turned upright.
I thought that it had something to do with render queue/order etc. I found I could order by material, but I DO NOT want to do this. I would prefer to do something like ordering by mesh or game object. But I can't figure out how to do that.
Let me know if I need to provide any more details. Thank you.
Answer by Bunny83 · Mar 24 at 09:19 PM
You may want to set your transparencySortMode to Orthographic. Since you use a perspective camera, gameobjects are sorted based on the actual distance from the camera. So when you look at your objects from an angle they could swap places. The orthographic sort mode should sort them based on the distance from the camera plane.
Your answer
![](https://koobas.hobune.stream/wayback/20220613054600im_/https://answers.unity.com/themes/thub/images/avi.jpg)