Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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


Product Version: UE 4.9
more ▼

asked Aug 02 '16 at 02:44 AM in Blueprint Scripting

avatar image

1 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello, Zaedyn,

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.

more ▼

answered Aug 02 '16 at 09:14 AM

avatar image

606 14 10 34

avatar image Zaedyn Aug 02 '16 at 06:29 PM

Thank you so much, it works perfectly now :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question