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 rotation not affect player direction

Good Day,

I have made a project using the Top Down Template, then I copied the 3rd person Movement blueprint across so i move the character using WASD.

Finally I added a camera rotation Blueprint. All of this is working fine except when I rotate the camera around the player, he retains the original movement axis.

in greater detail, when first start I press W and go forward fine. But when i rotate the camera 180 and press W the player moves in the same direction instead of back to where he came.

Player Movement https://gyazo.com/074bdb17cfc4cafe93e0515c82048035

Camera Rotation https://gyazo.com/8cce08df4c42db3c85b94ad864eeaf08

Product Version: UE 4.12
more ▼

asked Jan 31 '17 at 12:02 AM in Blueprint Scripting

avatar image

3 2 4

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

1 answer: sort voted first

This Should work.

If you wire that into a event tick it should fix your issue, The spring arm yaw adds on to the constant pawn rotation so any movement of the camera will add to the rot of the pawn making it move in the direction of the camera aswell as a set camera view.

alt text

Hope this helps

more ▼

answered Feb 02 '17 at 12:30 AM

avatar image

131 26 25 35

avatar image PlatinumClient Feb 02 '17 at 12:31 AM

This worked great thanks!!

(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