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"

Set actor forward to look at target

I want to have an actor basically look at a target vector. That is the actor is rotate so its forward vector when drawn out would eventually intersect with the given target vector. I tried to find a "LookAt" function, but that doesn't seem to exist. Any help is appreciated.

Product Version: Not Selected
Tags:
more ▼

asked Oct 09 '14 at 11:00 PM in C++ Programming

avatar image

slev23
10 3 8 10

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

"Find Look at Rotation" is your friend;0

Regards

Pierdek

more ▼

answered Oct 10 '14 at 06:59 AM

avatar image

Pierdek
2.6k 73 49 131

avatar image slev23 Oct 10 '14 at 07:41 PM

I have figured that part out and was able to find the proper rotations, but the actor doesn't rotate correctly towards the target.

avatar image Pierdek Oct 10 '14 at 07:50 PM

Post some screenshot from your solution, and You know, search doesn't hurt:

https://answers.unrealengine.com/search.html?q=rotate+toward&type=question+OR+idea&lang=en&sort=relevance

(comments are locked)
10|2000 characters needed characters left
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