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"

Line trace to side of Spline

Hey guys, I used this tutorial to trace line along spline


but I want trace line to the left or right side of spline according to Spline current rotation(Yaw) just like this. The distance at the picture should be any float(distance from current spline point to required trace point).


view is from above, RED DOT = line trace GREEN CUBE = character BLACK ARROW = spline direction

The important thing is Line trace start point... End point will be up vector of capsule component to hit landscape. Here is what I got, I was trying to solve it in some ways but I can't keep the vector (trace start point) smooth and always at the side of my character

I got

(don't care about variables "left distance X/Y" are one of my unsuccessful attempts) Thank you for any HELP :)

Product Version: UE 4.9
more ▼

asked Oct 16 '15 at 06:50 PM in Blueprint Scripting

avatar image

102 6 9 13

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

1 answer: sort voted first

Just reverse "Get Right Vector". Then you are always probing exactly left from the character regardless of position and rotation

more ▼

answered Oct 16 '15 at 09:36 PM

avatar image

986 34 3 41

avatar image jozi341 Oct 17 '15 at 07:22 AM

Oh.. I knew about right vector but didn't know how to use it properly, but finally I got it.. Right vector * Float(distance). Thank you so much :))

(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