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"

Camera pawn not rotating

Hello,

I am trying to make a camera for my tactical game, what i did is create a pawn with just a SpringArm and a Camera attached to it ; The pawn possessed by my PlayerController.

I tried using AddControllerYaw, SetActorRotation (being the one i would want to use here) or even SetControlRotation ; Each time the camera rotate properly, but the pawn itself (actor) does not, so when i want to change its location based on the RightVector for instance, it moves based on its original orientation.

I am sure it is something stupid, i tried meddling with options like UseControllerRotationYaw or UsePawnControlRotation, but nothing changes.

All i want is to rotate the pawn/actor so that i can then translate it.

Product Version: UE 4.12
Tags:
more ▼

asked Aug 28 '16 at 02:41 PM in Blueprint Scripting

avatar image

Ldle
6 1 6

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

1 answer: sort voted first

I found what i was looking for, AddActorLocalOffset, had to change the pitch rotation to only affect the SpringArm though so that the pawn forward stays horizontal to the ground.

more ▼

answered Aug 28 '16 at 04:23 PM

avatar image

Ldle
6 1 6

(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