# How do I make bug Character Tilt on slanted terrain?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-bug-character-tilt-on-slanted-terrain/476840>\
**Category:** World Creation\
**Tags:** tilt, side-scroller, unreal-engine, Physics, Collision, glitch, question\
**Created:** [January 6, 2021, 1:34am UTC](https://forums.unrealengine.com/t/how-do-i-make-bug-character-tilt-on-slanted-terrain/476840 "2021-01-06T01:34:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgyorki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgyorki](https://forums.unrealengine.com/u/mgyorki)\
**Post date:** [January 6, 2021, 1:34am UTC](https://forums.unrealengine.com/t/how-do-i-make-bug-character-tilt-on-slanted-terrain/476840/1 "2021-01-06T01:34:34Z")

</div>

I’m not super familiar with Unreal but I’ve been working on created a small **3D sidescroller game** with a group. The main character is a beetle so the **character collision box is a rectangle** basically and we don’t use the capsule for collisions.  
We’re still struggling to figure out **how to make the character rotate on titled terrain** without the character glitching in a bunch of different directions.  
Any help would be greatly appreciated thank you!

---

<div class="post-metadata">

**Author:** ![Peemard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peemard/32/764258_2.png) [@Peemard](https://forums.unrealengine.com/u/Peemard)\
**Post date:** [January 6, 2021, 1:48am UTC](https://forums.unrealengine.com/t/how-do-i-make-bug-character-tilt-on-slanted-terrain/476840/2 "2021-01-06T01:48:30Z")

</div>

I think a good way to do this would be to run a line trace by channel (connected to event tick) that constantly points downwards, and then breaking that hit, getting the impact normal, and using ‘rotationtoxvector’ to convert that into a rotation, and the set that to the rotation of your mesh

---

<div class="post-metadata">

**Author:** ![Peemard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peemard/32/764258_2.png) [@Peemard](https://forums.unrealengine.com/u/Peemard)\
**Post date:** [January 6, 2021, 1:51am UTC](https://forums.unrealengine.com/t/how-do-i-make-bug-character-tilt-on-slanted-terrain/476840/3 "2021-01-06T01:51:35Z")

</div>

and I can give you more info on how to run the line trace if you need it

---

<div class="post-metadata">

**Author:** ![mgyorki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgyorki](https://forums.unrealengine.com/u/mgyorki)\
**Post date:** [January 6, 2021, 4:15am UTC](https://forums.unrealengine.com/t/how-do-i-make-bug-character-tilt-on-slanted-terrain/476840/4 "2021-01-06T04:15:05Z")

</div>

![326439-blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/d/40d069590ff22e6db68a70066fedcc4975055c08.png)

We actually have been working with the line trace but it’s super buggy and glitches all over the place. This is the blueprint my team has so far!

---

<div class="post-metadata">

**Author:** ![Peemard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peemard/32/764258_2.png) [@Peemard](https://forums.unrealengine.com/u/Peemard)\
**Post date:** [January 6, 2021, 4:37am UTC](https://forums.unrealengine.com/t/how-do-i-make-bug-character-tilt-on-slanted-terrain/476840/5 "2021-01-06T04:37:24Z")

</div>

How is it bugging out? I noticed you are setting the entire actor rotation instead of just the rotation of a single component, like the mesh. Maybe that has something to do with it.

---

<div class="post-metadata">

**Author:** ![SteveStacy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteveStacy](https://forums.unrealengine.com/u/SteveStacy)\
**Post date:** [July 13, 2026, 3:54pm UTC](https://forums.unrealengine.com/t/how-do-i-make-bug-character-tilt-on-slanted-terrain/476840/6 "2026-07-13T15:54:40Z")

</div>

I know this is an old thread, but just in case you stumbled across this thread, like I did, here is a great tutorial by “The Game Dev Guy” -  
**How to Align Character Mesh to the Floor in Unreal Engine -** [https://www.youtube.com/watch?v=1ICBWJ7srxQ](https://www.youtube.com/watch?v=1ICBWJ7srxQ)
