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"

How to correctly orientate a lagging top-down camera?


I have a top-down camera (-Z) that follow a pawn using a spring arm with some lag. I need my camera to always point at that pawn. This imply some rotation when the arm is late because of the lag. That camera can rotate on its yaw and pitch axes but can't roll (so north is always at the top of the screen).

I've tried to script it, using the security camera bluprint from Blueprints example project. This resulted in this, among many other tries : alt text

I've got two issues :

  • I can't get the yaw and pitch to work while blocking the roll

  • The camera refuses to pitch more than -90 degrees. It turns around and pitch up again (which seems to be a normal behavior for a FPS game but I need my camera to be upside down sometime)

I'm not very comfortable with 3D geometry. Do you have a solution or example to my problem?

Thanks !

Product Version: UE 4.11
unreal question.png (118.0 kB)
more ▼

asked Jun 07 '16 at 07:53 AM in Blueprint Scripting

avatar image

15 1 3 5

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

1 answer: sort voted first

You should be able to use the Blueprint node "Find Look at Rotation" which I believe will achieve the rotation that you want (it doesn't affect roll). As for making your camera pitch upside down, I believe there are options to alter the rotation limits for each axis so that you can pitch past 90 degrees etc. Also this thread may help you: https://answers.unrealengine.com/questions/39210/disable-controller-90%C2%BA-to-270%C2%BA-limit.html

You may need to do some separate handling with Find Look at Rotation so that it works properly with going upside down.

more ▼

answered Jun 08 '16 at 11:22 PM

avatar image

66 5 7 15

(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