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"

Make character rotate after camera has rotated

I'm trying to make the character face where the camera is looking once the camera has rotated, I manage to rotate the character, but only visually, if I try to move where the character is supposed to be facing it doesn't go that way, still faces the other way for character movement, how could I fix this?alt text

To rotate the camera I use this: alt text alt text

Product Version: UE 4.16
Tags:
camera1.png (298.0 kB)
camera2.png (322.0 kB)
camera3.png (281.5 kB)
more ▼

asked Jul 12 '17 at 06:40 PM in Using UE4

avatar image

Munchito
5 1 2 5

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

1 answer: sort voted first

You didn't show your movement implementation. But since you're rotating the MeshComponent, if you want to move forward using AddMovementInput, the mesh's forward vector must be pass to the AddMovementInput node.

Something looks like:

Mesh -> GetForwardVector

and connect the return value to the World Direction pin on the AddMovementInput node.

more ▼

answered Jul 12 '17 at 08:46 PM

avatar image

madturtleGGinin
346 1 5 4

avatar image Munchito Jul 12 '17 at 09:19 PM

How could I connect it, right now is like this: alt text alt text

movement1.png (168.0 kB)
movement2.png (164.6 kB)
movement3.png (164.9 kB)
(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