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"

Head look based on camera rotation

I'm trying to create a system where the player character's head follows the direction of the camera that i've attached to it. I'm nearly there, but there is an issue i can't seem to wrap my head around. Whenever my character is facing the default spawn direction it will work as expected and follow the camera's rotation as shown below: alt text
However, when my character is facing the opposite direction he will look left and right as expected, but looking up and down is inverted.
alt text
I've been trying to fix this issue for the past couple of hours, but i can't seem to find an answer myself. I'm guessing it has something to do with relative vs. world rotation, but i can't for the life of me figure out how to change the blueprint so that it works properly.
Below is shown how i currently have my blueprint setup:
alt text
If anyone could shed some light on this to point me in the right direction i'd really appreciate it.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 22 '15 at 12:19 AM in Blueprint Scripting

avatar image

bcnobel
48 3 4 9

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

1 answer: sort voted first

have you tried just multiplying the pitch of the camera by -1?

more ▼

answered Jan 07 '17 at 06:26 AM

avatar image

DatDopeDan
66 3 4 10

(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