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"

How to make player move in the direction of where the camera is facing

Hi Guys! I'm new in UE 4 Soooo, I trying to make game like Top Down, camera view can be Zoom in / Out and can be Rotated. My problem is that I can not make player movement in direction where camera is facing. like in Editor mode.

Thanks !

Product Version: UE 4.19
Tags:
more ▼

asked Sep 12 '18 at 01:30 PM in Blueprint Scripting

avatar image

Delmarek
1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

As you have not provided any blueprints I will assume that you use Add Controller Yaw Input node in your Input Axis look Right event.

In this case you can use Get Controller Rotation -> take only the Yaw value -> Mare Rotator -> Get Forward Vector. I will call this Forward Vector.

From this point on you can move your Pawn in the Forward Vector direction multiplied by your desired speed and the Axis Value.

more ▼

answered Sep 12 '18 at 01:58 PM

avatar image

dZh0
1.2k 6 5 8

(comments are locked)
10|2000 characters needed characters left
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