- Home /
Lights on floors!
Well, I'm having great difficulty figuring out how to make the light not bleed through the wall onto the floor underneath of it. It hits my wall just fine, and the back side is dark, but then under the edge of the wall, light still hits the other side on the floor.
I've tried making the the floor on the opposite side as a whole new game object, but it doesn't fix the problem, it still appears on the other floor just the same.
I feel silly because I'm sure it's something simple that I just can't figure out yet.
PS, I'm trying to get it to work with a point light, but the same happens with directional and spot lights too.
Any suggestions?
Answer by Nerull22 · Aug 31, 2011 at 01:31 AM
Are you sure that the wall is actually touching the floor? Like is there a crack or anything under the wall that it could be getting past?
Yup! I've tried exact touching, touching the bottom side of the "floor" game object, and even 50% of the wall object being below the surface of the floor.
Answer by Zantal · Mar 12, 2012 at 01:37 PM
i suppose there is nothing to prevent this from happening.
I have looked everywhere and there is only 1 answer saying we should be using 0 depth walls.
i had my graphic guys extrude some models that had 0 depth walls and after that the problem vanished.
Your answer
Follow this Question
Related Questions
FPS Object-on-wall Placement 0 Answers
Passing through wall 1 Answer
Typecasting problem? 3 Answers
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
Accessing lights from c# code 3 Answers