How to prevent character from making sharp turns

AleDev
Thu, 03 Jun 2021 23:31:31 +0000
Blueprint

I’m making a 3D platformer and I used the thirdperson character BP template as a starting point.
But now I want to make that, when the character is running, he is less able to make sharp turns. So, the faster he is running, the slower his input vector should be able to turn.
I’m aware that I can set the rotation rate in the character movement component, but that only affects the character’s rotation per se, not the movement direction. So I made a set up that makes the rotation rate get lower when he is faster and higher when he is walking slower, but that only results in the character running sideways when turning (because his rotation is slow but his actual movement direction changes the same).

It’s like, I need to limit the turn rate of his velocity vector, not only his rotation rate, so he doesn’t slide sideways.
Would appreciate some suggestions, thanks!

5 posts - 3 participants