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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

how to make movable line trace with player's forward direction?

Hey all! First: So I'm trying to make a line trace by channel to detect player's forward direction & it's all working tried to move the start & end of the trace by timeline upward & it's working & the out hit array is every point from his from the Pelvis to the head!

The Problem: when I tried to move the trace left & right of the character for start I thought it was working! but when I rotated my character to a different direction it got weird movement! the rotation is good! as I rotate the trace rotate with me.. If I faced a direction let's called east, it goes perfect as I wanted from left (center of the character) to right (away from the character) the same goes for west! but when I face let's say north the moment of the trace become from forward away a little bit, to the character (like a knife in stabbing movement)

Question: How can I fix it? I want it always goes from left to right no matter what direction I faced!

alt text

like what you see the timeline is linked to Y, if I linked it to Z it will fix the other direction but the first direction will not be working anymore.. I know the idea of why it's not working, but can't fix it..

Product Version: UE 4.17
traceproblem.png (150.2 kB)
more ▼

asked Sep 09 '17 at 08:42 PM in Blueprint Scripting

avatar image

3 1 2 3

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

1 answer: sort voted first

Socket Location is in World Space and you always add in Worldspace Y Direction. If you want to Add something in a relative Direction get Forward,Right or Up Vector from your Actor or from the Sockets Rotation (depends on your needs) multiply it by a float and add your Socket Location to it. The bottom Part looks good to me (assuming you left Z out for a reasson)

If I missunderstood your Question scribble it out on http://sketchtoy.com/ what happens and what you want to happen. I get back to it in time.

more ▼

answered Sep 09 '17 at 09:31 PM

avatar image

6.9k 143 26 172

avatar image SamwidSA Sep 10 '17 at 06:00 PM

alt text

now this working perfectly! Thanks!

traceworking.png (173.2 kB)
(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