# Rotate Bone By Base Height To Edge Height

**URL:** <https://forums.unrealengine.com/t/rotate-bone-by-base-height-to-edge-height/407175>\
**Category:** Community & Industry Discussion\
**Tags:** edges, height, unreal-engine, rotate, question\
**Created:** [October 16, 2017, 8:25pm UTC](https://forums.unrealengine.com/t/rotate-bone-by-base-height-to-edge-height/407175 "2017-10-16T20:25:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreaghy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dreaghy](https://forums.unrealengine.com/u/Dreaghy)\
**Post date:** [October 16, 2017, 8:25pm UTC](https://forums.unrealengine.com/t/rotate-bone-by-base-height-to-edge-height/407175/1 "2017-10-16T20:25:15Z")

</div>

Hello !

To explain more, I have a Mesh that contains Animations ! When I tried some tutorials about IK Foot Placement, it didn’t worked… Maybe because the Mesh is from Mixamo Fuse !

So I did manage something by myself : make a LineTraceByChannel from the Left/Right Foot then calculate the Height from the base of my foot to the ground (or ledge), finally rotate my bone by the height of the ledge on the X axis (X axis because it’s the only axis that I wanted) !

But more I go up (my position on the ground is \>0, like 220) more the bone is rotating and giving crazy things (my left foot is inside my head) !

What I wanted to do is calculate the START of the height (start at 0 or something like that) and the END of the height (my ledge so) !

Cordially.

Voyder R.
