Rotate player to movedirection
im very new (just started today...) in UE4
Before i used Unity and have there my game working already, but i would like to recreate it in UE4 to see which i like more...
Now i have already a problem:
I have 3th person camera setup (self made not the provided one) and would like to rotate the player smoothly into the direction, in which he walks...
Example: W - player facing up S - player facing down ...
Heres a "Dev-Video" of the Unity version -> and i just want to recreate this movement https://www.youtube.com/watch?v=ysQZbwVRFDM
Hope someone can help me
asked Feb 18 '16 at 05:02 PM in Blueprint Scripting
If you use a Character as your basic Actor it automatically has a CharacterMovement Component, wich has the bool of Orient Character to Movement wich will do what you want.
answered Feb 19 '16 at 01:06 PM
Hi man , You can create a new vector. call it My_Direction. When you use the input you set up My_Direction. In the tick event you check if the char forward vector is == to your My_Direction. If they are not equal , you have to calculate in wich direction you should rotate, and make your char rotate about Rot_value. You can put Rot_value out , so you can change it at any time.
answered Feb 19 '16 at 01:00 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here