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 View Target with Blend LookUpDown/Pitch Problem

When using Set View Target with Blend, to change player1's view to player2's view, player1 sees only the yaw movement (Turn/Look - left, right) from player2 and cannot see the pitch movement - when player2 looks up or down. I tried using Use Controller Rotation Pitch, it works, but it basically rotates the whole player up or down... Does anyone have a fix for this problem?

Product Version: UE 4.20
more ▼

asked Feb 16 '19 at 11:48 PM in Blueprint Scripting

avatar image

80 11 16 21

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

1 answer: sort voted first

Hey, I had the same problem, just make sure that in your main character, "Use Controller Rotation Pitch" and "Use controller Ratation Yaw" are checked !

more ▼

answered Mar 03 '19 at 09:36 PM

avatar image

6 1 1

avatar image Sntfon100 Mar 07 '19 at 05:38 AM

Thanks for the reply, but i've already tried it and as I wrote when checking "Use controller rotation pitch" it rotates the whole player up or down. Meaning if you have a mesh of lets say a human, you would see the human "lay flat" in the air when looking up or down.

avatar image ValentinCamus Mar 07 '19 at 04:58 PM

Hi, sorry for the repetition, I copied pasted the answer of another topic and I had the problem later .. I fixed it with the "Get Control Rotation".

If you have the same problem as me, when you "control" the player2, the player1 pitch value is always const. However the player1's "Get Control Rotation" isn't, so you can use it to update the pitch value. It's maybe not the best solution, but it works for me.

I give you a screenshot of how a calculate the pitch value from the control rotation, because the angle aren't exactly the same between the player and the player rotation (for me, maybe not for you).alt text

Hoping to have been more helpful ;)

capture.png (155.1 kB)
avatar image Sntfon100 Mar 13 '19 at 02:54 PM

Thank you for the help. Unfortunately I won't be able to test your solution since i'm not home till the next week. But i'm curious on the result... with your solution does the spectator (player1) controls the pitch on his end/view?

(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