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"

Rotate first person camera in blueprints

I have an end-game sequence that I'm trying to achieve in which the player suddenly turns around over a period of about 0.25 seconds. I built my game using the first person template, so I have a camera component inside of a capsule with a couple other components that are irrelevant.

I have tried to make the camera turn around by setting the camera component's relative rotation to 180, but that does not seem to do anything. I have also tried to do this with the "add controller yaw input" and a 0.25 second timeline with an output of 4.75, but there's no good way to make sure that the character turns EXACTLY 180 degrees; it seems that it will usually turn somewhere inbetween 90 and 180 degrees, but it is inconsistent.

Adding local rotation to the pawn actor does nothing, and setting the camera's "use pawn control rotation" to false before attempting to rotate it also does nothing.


What is the proper way to rotate the first person camera over a period of time for an exact number of degrees?

I am open to C++ functions too; I'm just less experienced in that language.

Product Version: Not Selected
Tags:
more ▼

asked Nov 08 '14 at 11:14 PM in Blueprint Scripting

avatar image

MNP_David
107 16 24 28

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

1 answer: sort voted first

Have you tried using SetControlRotation?

more ▼

answered Jul 10 '18 at 10:52 PM

avatar image

VolatileAgent
51 2 6 7

avatar image VolatileAgent Jul 11 '18 at 01:49 AM

Whoops! Just noticed this question was 4 years old!

(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