# \[UE4.27\] How to adjust player movement relative to rotation? 

**URL:** <https://forums.unrealengine.com/t/ue4-27-how-to-adjust-player-movement-relative-to-rotation/2604780>\
**Category:** C++\
**Tags:** charactermovementcom, unreal-engine, Physics, question, CPP\
**Created:** [July 15, 2025, 3:42am UTC](https://forums.unrealengine.com/t/ue4-27-how-to-adjust-player-movement-relative-to-rotation/2604780 "2025-07-15T03:42:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![congatime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@congatime](https://forums.unrealengine.com/u/congatime)\
**Post date:** [July 15, 2025, 3:42am UTC](https://forums.unrealengine.com/t/ue4-27-how-to-adjust-player-movement-relative-to-rotation/2604780/1 "2025-07-15T03:42:29Z")

</div>

I’ve been trying to create a special rotation script for my player character in C++; I want the character to move forwards in the direction they turn when acceleration is not being applied, to maintain their physics properties _(namely, gradually slowing down when no accel input is given)_, and to allow for horizontal movement.

So far my attempts have been within the Character class itself, but I’m suspecting that I will need to make a custom Character Movement Component to combine forward movement and rotation the way I’ve envisioned.

Is it possible to write the script within the Character class, or would I need to make a custom CMC?
