Why is my Line Trace flickering when I move ?
I made a blueprint so that a Line Trace starts from the camera to a crosshair that is located in the middle of the screen. The issue is that whenever the character is rotating(while moving), the Line Trace flickers, then if the character is just running in one direction, the Line Trace doesn't flicker. I made another BP to have a Zoom when I press right-click, and the Line Trace doesn't flicker when zooming, because the character's angle stays the same, he's not rotating. I'm using UE4.9.2, on a Blueprint>Third Person project, basic stuff.
Here's a screenshot and a gif for troubleshooting.
The flickering. https://gyazo.com/d793571c8032d18b72dfc5453b4c1c65
The Line Trace blueprint. https://gyazo.com/fdc27ded47cee1e7882feb804d6e0650
asked Aug 02 '16 at 02:44 AM in Blueprint Scripting
Instead of using the Follow Camera component, try getting the "Player Camera Manager" and from it get its camera location and forward vector. Do your trace from those.
There seems to be something in the setup of the third person camera that is affecting the orientation of traces from it. Maybe some spring component or something like that.
Look at this thread: https://answers.unrealengine.com/questions/228923/solving-line-trace-jitter.html
All the best.
Follow this question
Once you sign in you will be able to subscribe for any updates here