How to rotate towards input direction?

So, I’m trying to create movement similar to that in Mario 64/Galaxy/Odyssey where instead of simply moving towards the desired direction, Mario instead always moves forward, and just rotates towards the desired direction. When the player wants to go in the opposite direction, instead of rotating, Mario skids to a stop and changes direction. See this clip from a Nimso Ny video to get a visual explanation:

I’ve already created something similar in another game engine, but I’m wanting to know what the best way would be to do this “the Unreal way”, using the CMP, control rotation, etc. How can I achieve this? Thanks!

Bump. I really need some help with this.

Hey there @PrecisionRender! Usually I’d give a bit of a demo of the mechanic you’re looking for, but this is a bit deeper than just a quick demo from me would help with. So I’ve brought a tutorial from a developer that’s done a tutorial on Mario 64 style movement mechanisms. It should give you a general idea of where you’re headed, though it’s 3 parts so it’s a bit long. Hope this helps!

Disclaimer: Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

2 Likes

Thanks very much! This looks exactly like what I need.

This video did not provide exactly what I was looking for, but I was able to combine the technique I used in another game engine to get the exact results I needed.

1 Like