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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Rotating the Camera to an Object Smoothly

Please watch this video: https://youtu.be/87A8kWU6QoY

I want that flower to be in the center of my camera. Please help ;(

Here's the blueprint: Blueprint I didn't use X and Y since I don't need it. (I can only rotate my camera right and left, can't rotate up and down.)

I tried dot product, get direction vector, and it didn't work.

Product Version: UE 4.12
Tags:
1.png (433.3 kB)
more ▼

asked Jul 17 '16 at 09:27 AM in Blueprint Scripting

avatar image

yeshjho
3 2 4 4

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

1 answer: sort voted first

Hi man , here an example, use the node "Find look at" this will give you the rotation you should have , from a point , to look at another point. But you cant set it directly , otherwise you istantly turn to that rotation . So, use the lerpR. This node will use the alpha (0.1) to transform the first rotation in the second. Note that i used the true location of the player. and then i make a special location for the flower. Using the X, Y of the flower and adding the Z of the player. In case your actor are not at the same high in the level, your player will only turn on Z this way.

alt text

more ▼

answered Jul 17 '16 at 12:29 PM

avatar image

Est_engine
1.2k 58 12 62

avatar image yeshjho Jul 18 '16 at 01:44 AM

Thank you for answering :D I'll try it later, cause I'm on vacation now Thank you again!

avatar image yeshjho Jul 20 '16 at 09:33 PM

https://youtu.be/SRh3MJBGovs

We're so close!

The only problem is, the camera returns to the start point at the end...

Here's the blueprint(I added a timeline since it didn't work without timeline): alt text alt text

1.png (422.8 kB)
2.png (180.7 kB)
(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