I have a very important question. I am using a line trace to try and detect multiple meshes in my scene and hide them all at the same time when the line traces hit the objects. When the line traces are not hitting the objects, the objects need to return to full visibility. I am not sure what I am doing wrong but I can’t get it to behave correctly.
I can successfully get it to do the first part (Hiding objects) but cant get t to accurately reveal all the objects that are no longer inside the line traces.
I have attached several images of the process that has been followed
Have you tried turning debug on for that trace? I think it might be most of your problem. What are you trying to do, a sort of fan trace?
Not quite sure what you’re heading for with the arrays. If you just want to unhide what you’re not tracing to, you can use a variable. But it’s worth using two arrays if you unhide happens at a different rate to the hide, like
Yes I am trying to create a fan of rays in front of my character which is suppose to work like a camera cull, culling all walls in front of the player. and when the walls are no longer inside the line trace fan the objects should be visible again
Something like the attached image : Sorry for the horrible drawing
You can’t walk through that gap, though. You would need to fiddle with custom collision settings for that. Also, one mesh can block you from hiding another, even when its hidden. Same problem.