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"

Camera will not rotate using Blueprint

This is probably a simple fix but I have really been struggling to find a solution to why my Blueprint would not be working. I want to be able to rotate my camera, which is attached to a spring arm, using mouse axis input whenever the left mouse button is clicked. Whenever I play the game and try to rotate the camera, nothing happens.

Here is my Blueprint, alt text

Any help with this would be greatly appreciated. Thanks!

Product Version: UE 4.11
more ▼

asked Apr 12 '16 at 11:25 AM in Blueprint Scripting

avatar image

1 1 2 2

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

1 answer: sort voted first

Be sure that this is a character that you've possessed. The easiest way is to let the system spawn it at the begin play. So in Project Settings -> Maps and modes, you have your own game mode and your own character as pawn. That way it's possessed at the start of the game.

alt text

Other things is enable Use pawn control rotation

alt text

Hope this helps :)

more ▼

answered Apr 12 '16 at 12:14 PM

avatar image

1.8k 65 27 89

avatar image markskelton Apr 12 '16 at 12:45 PM

Thanks for the response.

I'm not using a GameMode or PlayerCharacter Blueprint, just an Actor Blueprint. Is it 100% necessary to have both of these Blueprints as well?

I've now edited my Blueprint. It mostly works fine, although I would like to lock the camera's X rotation value at zero. When I added clamps for the float values of the rotation it now only allows me to rotate the camera around the Z axis. Any idea as to why this would be?

alt text

avatar image markskelton Apr 12 '16 at 01:06 PM

Got it working, just need to clamp the X rotation value. Realised I needed to plug the Y value into 'Make Rotator'.

(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