x

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"

Location plus rotation to get line trace start and end

I'm probably being really stupid but for the life of me i cant figure this out and i know its simple.

I need to get the line trace on the corner of my box that is physical, ive used location vectors to work out the corner if the box hasnt rotated how do i add the rotation so the line trace moves with and stays on the corner of the box?

alt text

alt text

Product Version: Not Selected
Tags:
linetracebp.png (112.2 kB)
more ▼

asked Jan 15 '15 at 12:52 AM in Blueprint Scripting

avatar image

Jollyghost
1 1 3 4

avatar image Furroy Jan 15 '15 at 04:04 PM

You don't say how exactly you want the trace to extend out from the box, but you probably want to multiply your offset vector by the box's rotation converted to a vector before you add it to the start location. That way the offset vector 'turns' along with the object. Also people usually use the forward vector for line traces not the up vector, unless you're trying to see what's above you and not in front of you.

Finally, here's a good tutorial on youtube that shows you what I mean by this extra multiplication: https://www.youtube.com/watch?v=Qx_zyN5drWQ

Good luck!

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

1 answer: sort voted first

Can you place a socket on your static mesh, then ask for the socket location

more ▼

answered Jan 15 '15 at 02:13 PM

avatar image

[Epic]Ori Cohen STAFF
1.4k 25 14 59

avatar image Jollyghost Jan 15 '15 at 02:51 PM

Thank you so much, just before you posted this i put box components on the corners but sockets would work better thank you.

(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