Hey guys I need help my flash light object keeps going through the wall even if the flash light has a box or mesh collider. Not sure why this happends. It happened on the ground to but i lifted up my flash light for that. Also my flash light ‘light’ EVERY time I look down it goes smaller or if I go towards a wall it goes smaller. Any help please? I want the light to be rigid so it doesnt go through walls and the light doesn’t go smaller. The light is attatched to main camera of first person controller.
unfortunately theres no solution to this problem, its just how unity does things one solution i thought of is to raycast from the lights point out to maybe 200 then set the distance of the light to the hit.distance , also make sure shadows are enabled on the light.
Didn’t help any other options?
Oh I found the solution for some reason you must have the flash light in the middle of the first person controller.
please do explain more what you had to do, id be interseted to know how you got around this problem
For the f
For the flash light going smaller the problem was that I put the light infront of first person controller, I wanted it to look more genuine by having a flash light and the light showing. I fixed this by positioning the light directly onto the First person controller, you can push it forward a bit more if you like. But if you do it too much then you will see the light to go smaller. I hope this helped!
judging from what i’ve read above i assume that the problem is with the clipping plane of the camera viewing the flashlight try setting it to something like 0.1
just my 2 cents
Didn’t work thanks anyways