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. 

Camera pan according to roll rotation

Hi everybody!

I have a simple camera, it follows objects in the world. Sometimes, my camera is upside down, or 3/4 right. The roll (X) changes all the time.

On this camera, I have a simple pan blueprint (yaw and pitch). It works when the camera is straight (roll = 0). But, the pan is inverted when the camera is upside down. Normal so far.

Here, a wonderful sketch! alt text

My question is, how to keep my yaw and pitch (Z and Y) always in the right direction, related to the roll (X) ? (-1 and 1 always at left and right or top and bot, and not inverted).

Thank you very much for help!

Product Version: UE 4.17
Tags:
more ▼

asked Oct 19 '17 at 04:15 PM in Blueprint Scripting

avatar image

Goetheus
12 3 8 8

avatar image Goetheus Oct 23 '17 at 07:28 AM

No idea? I should have listened to my vectors classes on high school...

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

1 answer: sort voted first

if you use add rotation to your actor , user add relative rotation instead of add world rotation and also you can ignore roll rotation on your actor too

more ▼

answered Oct 24 '17 at 06:13 AM

avatar image

Siahpoosh
58 1 3 3

avatar image Goetheus Oct 24 '17 at 09:57 AM

You're right! I don't know why I tried to do this with a "set", plus a "world" rotation x) Add local rotation for actor is the best way to achieve what I was looking for.

Thank you!

(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