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 facing player issue with going past 90/-90 Pitch

alt text

I'm having a hard time solving an issue trying to get my camera to face my player at all time and not change orientation at the north and south poles as shown in orange.

Current set up :

My camera hovers above the player (this works)

The rotation is updated with the [ Find Look at Rotation ]. This will face my camera at the player at all times, but I do not want the camera to rotate 180 when the pitch is -90 as shown on the picture. I want the camera to keep facing the same orientation it was earlier for example the numbers I'm currently getting for rotation are:

[-53, 180, 0] [-63, 180, 0] [-73, 180, 0] [-90, 0, 0] [-76, 0, 0] [-63, 0, 0] [-53, 0, 0]

When actually watching the ball roll up the moment it hits the north pole the camera will rotate 180 degree and the player will roll down, but I want it to be seen as the player still constantly rolling up. So the camera is rotating based off the relative direction the player is going rather than the global orientation.

Product Version: UE 4.8
pitch issue.png (3.1 kB)
more ▼

asked Jul 15 '15 at 06:53 AM in Blueprint Scripting

avatar image

21 5 7 10

avatar image Narghile Jul 15 '15 at 08:42 AM

Is you camera in your BP, or have you made a Camera BP?


avatar image Lumi Jul 15 '15 at 06:27 PM

I've tried both ways a BP consisting of a camera and I've tried including the camera within the world's BP

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

1 answer: sort voted first

Hi Mate

Either way,

Why not clamp your angle at 89 degree or something similar.


more ▼

answered Jul 15 '15 at 09:14 AM

avatar image

1.7k 74 38 110

avatar image Lumi Jul 15 '15 at 06:31 PM

That doesn't help the over all goal because the player is capable of crossing 90 degree and by clamping it there will prevent movement pass that angle if that is what you are talking about. The player is suppose to be able to free roam on the world, so clamping it would prevent player movement.

(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