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"

'FromToRotation' from Unity equivalent?

Is there a way to calculate a rotation which rotates from fromDirection to toDirection? Basically an equivalent of this function from Unity:

https://docs.unity3d.com/ScriptReference/Quaternion.FromToRotation.html

I know that Blueprints don't have Quaternions, so this one is tricky for me...

Product Version: UE 4.17
Tags:
more ▼

asked Aug 31 '17 at 04:20 PM in Blueprint Scripting

avatar image

Slavq
2k 157 153 210

avatar image Komizart Oct 03 '17 at 08:29 PM

I want to knew too

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

2 answers: sort voted first

You can use a timeline for this from 0 to 1 values for say 5 seconds and then set actor rotation with the help of lerp rotator and plugging from value to A value of lerp and to value to Be value of lerp and the value from timeline to the Alpha value

more ▼

answered Oct 04 '17 at 02:00 AM

avatar image

kodusu
131 3 4 6

avatar image kodusu Oct 04 '17 at 02:36 AM

FindlookatRotation may be the node you are looking for

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

answered Oct 04 '17 at 03:20 AM

avatar image

Feureau
171 18 27 40

(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