- Home /
GameObject pass through wall and get the shadow from the other side?
Context : I got 2 camera for each player in my game. The first One render the gun, arms, ui and the second one render background(map, house, road, forest, etc.). Gun and Arms don't have any collision so the movement can be as fluid as possible. That's why I got 2 Camera.
Problem : But now the GameObject (gun and arms) get the shadow from the other side of wall when they get through them. I know it's not a bug, but I want to know if it's possible to bypass this effect? I still want shadow for realism, but not the one from the other side?
Thanks in advance for your help.
Your answer
![](https://koobas.hobune.stream/wayback/20220612145700im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
On my map i have some black shadows on game object 1 Answer
Custom Mesh for Game - Edges of my meshs' tris keep appearing on flat surfaces 0 Answers
How to make a GameObject that collides but the player can go through it? 2 Answers
How to make a GameObject not hittable by shadows ? 2 Answers
Illumination through walls 0 Answers