# How do I translate vertical momentum upon hitting a slope?

**URL:** <https://forums.unrealengine.com/t/how-do-i-translate-vertical-momentum-upon-hitting-a-slope/477102>\
**Category:** Character & Animation\
**Tags:** unreal-engine, slope, question\
**Created:** [January 11, 2021, 6:11pm UTC](https://forums.unrealengine.com/t/how-do-i-translate-vertical-momentum-upon-hitting-a-slope/477102 "2021-01-11T18:11:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HezK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HezK](https://forums.unrealengine.com/u/HezK)\
**Post date:** [January 11, 2021, 6:11pm UTC](https://forums.unrealengine.com/t/how-do-i-translate-vertical-momentum-upon-hitting-a-slope/477102/1 "2021-01-11T18:11:23Z")

</div>

Pardon my spaghetti code. My movement system works by interpolating between target speed values based upon movement states and ive been using this to very roughly calculate movement speed based on slope angles.  
\_\_  
I want to translate my vertical momentum to horizontal momentum when I collide with a slope. As of now I lose a large majority of my horizontal speed and no vertical momentum is translated. i do not know how to solve this issue.

[My Blueprints](https://www.youtube.com/watch?v=tBIKrtSGnvw)
