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"

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 can I get a 3d object to always face player/camera?

Hi folks, sorry for the rookie question. Whats the simplest blueprint to make a 3d object always face player or camera (2 ways: all axis, and just rotation). Thanks Guys

Product Version: Not Selected
Tags:
more ▼

asked May 06 '14 at 11:31 PM in Blueprint Scripting

avatar image

WalterMachado
91 3 5 142

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

6 answers: sort voted first

alt text

more ▼

answered May 07 '14 at 10:42 PM

avatar image

WalterMachado
91 3 5 142

avatar image Neilz0r Feb 21 '15 at 06:29 AM

This worked perfectly! Thanks!

avatar image TorQueMoD Nov 02 '16 at 07:13 AM

This only works on a single object. As soon as you have multiple objects in the scene, they fight over the camera's location. Also, shouldn't you be adding a value into the rotate vector's rotation... they're all zeros.

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

alt text

This solution was used for a 3rd person character. The function is called on tick. my character is moving (get Not sure how readable the pic is, but the important node in this solution is 'get unit direction vector'. It takes two objects and finds the direction from one to the other. I used the camera and the flipbook here and only used the Z value when setting the new rotation (the other two make the flipbook spin as I move the camera around).

more ▼

answered Sep 03 '17 at 06:31 PM

avatar image

Impostrophe
11 1 3

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

Easiest solution: Find look at rotation.

alt text

lookat.png (168.9 kB)
more ▼

answered Jan 26 '18 at 03:13 PM

avatar image

FinalZer0
121 2 6 12

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

REFLECT WIDGET

Depending on your setup you may need to flip one of the other axes.

reflectwidget.jpg (181.4 kB)
more ▼

answered Feb 21 '18 at 12:24 AM

avatar image

enzyme42
51 1 4 9

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

While we're in the giving mood: my 3d solution for a space shooter (same deal with may have to flip something).

[1]: /storage/temp/231419-facecameraupright.jpg

more ▼

answered Feb 21 '18 at 04:42 AM

avatar image

theonecalledtom
1.3k 60 66 270

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

Check the Math Hall in Content Examples project from Marketplace. It has exactly what you need.

more ▼

answered May 06 '14 at 11:40 PM

avatar image

Jacky
16.8k 671 167 676

avatar image WalterMachado May 07 '14 at 02:55 AM

Sorry friend, I am not finding it. Math Hall is a level inside the content exemples?

avatar image Jacky May 07 '14 at 03:08 AM

Yeah. Full name is Math_Hall. If you dont have it you need to download the 4.1 version of the project.

avatar image WalterMachado May 07 '14 at 04:24 AM

Thanks man! I was using the 4.0.2 version. Now I found it on 4.1.

avatar image xlar8or Oct 16 '14 at 10:14 PM

Use FindLookRotation between both actor locations :)

(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