Is there a Rotation Follows Velocity for characters?
I'm using the default sidescroller template with a custom character who's set up almost the same way as the default template character.
It's rotating to the direction he's moving (via "Orient rotation to movement" and Rotation Rate Yaw: 720), just like the default does. This is perfect for walking, but insufficient for swimming.
The character can swim, in 8 directions via WASD, or 360 via touch.
Maybe I shouldn't use these values to rotate the character when he's swimming?
I found out that projectiles have a "Rotation Follows Velocity" node, but it seems it only takes in a projectile. I'm pretty sure this would give me exactly what I want, but I'm not sure how I could modify it to work with a character.
Anyone know how I might get the character's rotation to follow its velocity? I've spent a couple hours trying to get it to work but haven't really made much progress. A link to an in depth tutorial about character/capsulecomponent rotations would be extremely appreciated!
No need for that node. Just get your Character's velocity and use "Make Rot From X" node to make the rotation for your Character, and finally set your character's rotation using "Set Actor Rotation" node.
answered Jun 24 '16 at 03:01 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here