# What can I do to fix the angle of the foot in different character rotations?

**URL:** <https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508>\
**Category:** Blueprint\
**Tags:** normals, line-trace, rotation, unreal-engine, question\
**Created:** [November 18, 2024, 9:30am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508 "2024-11-18T09:30:28Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [November 18, 2024, 9:30am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/1 "2024-11-18T09:30:28Z")

</div>

Here I’m trying to set the foot angle to follow the slope angle, and it does only work when the actor forward vector (Y) is -1 or 1.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/e/bae1235372e71da6f1f86684c92e3d280e2b6d7e.png)

What can I do to fix the angle of the foot in different character rotations?

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [November 18, 2024, 9:35am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/2 "2024-11-18T09:35:59Z")

</div>

Here’s a tutorial 😇

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/0/6f07c3015077cfeb4d74ae3751734551873618db.jpeg "Foot Placement IK TUTORIAL using Leg IK in Unreal Engine 4") ](https://www.youtube.com/watch?v=vQja9X1noak)

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [November 18, 2024, 9:49am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/3 "2024-11-18T09:49:46Z")

</div>

In this tutorial, the character rotation does not follow the camera rotation, and it is fixed. I’m trying to do it for an FPS game.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [November 18, 2024, 9:57am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/4 "2024-11-18T09:57:39Z")

</div>

> [@dabbbbbbbb5656](#):
>
> In this tutorial, the character rotation does not follow the camera rotation

You can apply it yourself 🙂

> [@dabbbbbbbb5656](#):
>
> I’m trying to do it for an FPS game.

I don’t think we’re on the same page. In the video you provided in the original post, you showcased the issue on a third person character, which I assume is the player character in your game. And IK feet are usually not a part of first person games. Could you clarify what’s going on?

* * *

While not being sure, I feel like you also want to be able to have this feature in the first person mode. There shouldn’t be any difference in the IK feet logic, but here’s a tutorial on switching between third person and first person:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/5/ec58366a4de555c186dc155a57d1a4e069e04ea5.jpeg "How to Switch between Third Person and First Person in Unreal Engine 5 - In 3 mins!") ](https://www.youtube.com/watch?v=lMuinhr0SXU)

Hope this helps! 😊

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [November 18, 2024, 10:41am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/5 "2024-11-18T10:41:49Z")

</div>

That was just another view so I can see how the feet are on the ground, but otherwise the goal is to do it for an FPS game. As you can see, the character always faces the camera. Following that tutorial would be like giving up on what I’m trying to do and what I’ve set up already.

In the foot placement part of that video, can you say where 110 and -45 come from?

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [November 18, 2024, 11:18am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/6 "2024-11-18T11:18:11Z")

</div>

> [@dabbbbbbbb5656](#):
>
> goal is to do it for an FPS game

You should be able to implement the same thing to your first person character as well. If you tried that and didn’t work, it might be due to those values that you were asking about, which determines how much the IK feet should be affected. You can adjust those values to fit your specific model 😊

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [December 2, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/7 "2024-12-02T13:12:03Z")

</div>

Hey @dabbbbbbbb5656, it’s been a while since we last heard from you! Were you able to implement IK feet properly? Do you have any updates?

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [December 10, 2024, 12:06pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/8 "2024-12-10T12:06:09Z")

</div>

When did I say my problem was implementing IK feet? It’s just the foot rotation only works for one direction and not the other ones due to me using the “Use Controller Desired Rotation.”

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [December 10, 2024, 12:25pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/9 "2024-12-10T12:25:39Z")

</div>

> [@dabbbbbbbb5656](#):
>
> When did I say my problem was implementing IK feet?

Please clarify the situation if you think there’s a confusion. It seems like your objective is to align the feet with the ground based on this explanation:

> [@dabbbbbbbb5656](#):
>
> I’m trying to set the foot angle to follow the slope

Have you tried implementing IK feet by checking out the tutorial I provided? The showcased implementation is different from the blueprint code you shared in your original post. To make sure that we’re on the same page, could you show us what happens when you enable the use controller desired rotation setting for your character after correctly implementing the IK feet logic in the tutorial?

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [December 10, 2024, 12:37pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/10 "2024-12-10T12:37:00Z")

</div>

I’m telling you that I won’t blindly follow a tutorial that is probably not made for people who want to use “Use Controller Desired Rotation.” Have you tried the tutorial you provided while the “Use Controller Desired Rotation” was on? If so, and it worked, I can blindly follow that tutorial, but otherwise I can’t.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [December 10, 2024, 5:48pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/11 "2024-12-10T17:48:31Z")

</div>

> [@dabbbbbbbb5656](#):
>
> I’m telling you that I won’t blindly follow a tutorial that is probably not made for people who want to use “Use Controller Desired Rotation.” Have you tried the tutorial you provided while the “Use Controller Desired Rotation” was on? If so, and it worked, I can blindly follow that tutorial, but otherwise I can’t.

I personally wouldn’t do _anything_ blindly. I just inspected the code and logically interpreted that the rotation of the character wouldn’t affect the result. But a test would be appreciated. So that’s the next step you should take in order to reach your goal.

I know it might seem so troublesome, it’s only natural for you to hesitate starting a new task while thinking it might not be useful at all! Fortunately, I did it for you 😊

Here:

* * *

## _Unrelated_

> **Website Bug**
>
> Umm what, the post showed up as edited the moment I posted it 🤣
> 
> Even though I added the comment above the second after I’ve sent my post, it became the second edit. This one’s for testing purposes, to see if this will show up as the third edit (even though this is a very quick edit as well) Ok it didn’t. Interesting 🤔
> 
> Okay I realized what was going on. I actually had a quote in the first version of my post but when I posted it something went wrong and the quote got removed automatically, and that showed up as an edit, and not just a normal edit, the kind where we delete posts, that’s why my first comment here showed up as the second edit and it got back to normal since then. Weird bug.

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [December 10, 2024, 7:39pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/12 "2024-12-10T19:39:48Z")

</div>

Can you please make a slope steeper than that one (like the slope in my image) and rotate in place so I can see the foot? (while the walls aren’t blocking the view)

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [December 10, 2024, 7:47pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/13 "2024-12-10T19:47:12Z")

</div>

Here:

Just start implementing it already rather than making sure that it will result in the way you want beforehand 🤣 You’re not saving time this way.

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [December 17, 2024, 8:41pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/14 "2024-12-17T20:41:36Z")

</div>

I’ve made some progress.  
Here I’m using the Make Rotation from Axes node and plugging the normal into the Forward, and then I’m trying to make the x of that rotation relative to the socket, and I plug that result into the Draw Debug Coordinate System to see what happens.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/3/68318293a9c4cc9f8ebf23386689dbd8e87df07b.png)

What happens is that it works fine only on one of the slopes and not with the other two; when the character steps on those slopes, the axis is no more facing the direction I want, and when this change happens, I see the X (Roll) has not changed (some kind of a flip happens from the Y or Z without the X changing). Does anybody know why this happens, and what can I do to fix it?

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [December 17, 2024, 10:38pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/15 "2024-12-17T22:38:30Z")

</div>

What’s the purpose here?

Wasn’t the showcase I provided the final result you were looking for? If so, then what are you doing? If not, please clarify what you wanna make different.

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [December 18, 2024, 12:27am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/16 "2024-12-18T00:27:59Z")

</div>

The video you provided, which I’d already seen before posting this question, does not interest me, and my question is clear about my code.  
The video works for the mannequin, not my custom character. There is no explanation of where certain numbers come from, so it’s useless to me.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [December 18, 2024, 8:11am UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/17 "2024-12-18T08:11:50Z")

</div>

> [@dabbbbbbbb5656](#):
>
> does not interest me

Though it’s what you’re trying to achieve, right?

> [@dabbbbbbbb5656](#):
>
> The video works for the mannequin, not my custom character. There is no explanation of where certain numbers come from, so it’s useless to me.

I was able to make it work with my custom model. Again, here’s the explanation 👇

> [@VisAgilis](#):
>
> determines how much the IK feet should be affected. You can adjust those values to fit your specific model

Those numbers aren’t taken straight out of certain proportions of the model. They’re determined with that taken into account, but they’re later played with until the result is satisfactory.

* * *

I understand that you’re looking for an exact answer, but noone can tell what values you should use for your specific model. Those are the only parts of the tutorial that you need to adjust yourself, and then you’ll be good to go 😊

---

<div class="post-metadata">

**Author:** ![dabbbbbbbb5656](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dabbbbbbbb5656](https://forums.unrealengine.com/u/dabbbbbbbb5656)\
**Post date:** [December 20, 2024, 1:22pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/18 "2024-12-20T13:22:25Z")

</div>

I was able to fix my problem with two different ways that I saw them in different videos explaining how to make the character align with the angle of the ground, but in my case I just needed it for the foot rotation.

First way:

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/a/1aa958e930c4cec2731c3de248a61d7b5c4978cc.jpeg)

Second way:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/2/ed287f591dc2421beb8cf9f2d4bf1a3be4821561.png)

Both of these ways are giving me the same result, but I find the first way to be understandable for myself, and in the second way, I don’t understand all that multiplication by -1 and swapping the pitch and roll while making the rotator.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 19, 2025, 1:23pm UTC](https://forums.unrealengine.com/t/what-can-i-do-to-fix-the-angle-of-the-foot-in-different-character-rotations/2132508/19 "2025-01-19T13:23:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
