# Get an object to align to another object beyond 90degrees

**URL:** <https://forums.unrealengine.com/t/get-an-object-to-align-to-another-object-beyond-90degrees/484621>\
**Category:** Rendering\
**Tags:** align, normal, unreal-engine, Blueprint, question, vectors\
**Created:** [June 9, 2021, 1:19am UTC](https://forums.unrealengine.com/t/get-an-object-to-align-to-another-object-beyond-90degrees/484621 "2021-06-09T01:19:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Dunwoody](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@A\_Dunwoody](https://forums.unrealengine.com/u/A_Dunwoody)\
**Post date:** [June 9, 2021, 1:19am UTC](https://forums.unrealengine.com/t/get-an-object-to-align-to-another-object-beyond-90degrees/484621/1 "2021-06-09T01:19:02Z")

</div>

Hi everyone! This is my first post, hopefully I explain everything well. So I’m just messing around with UE4 trying to sharpen my skills. My current thing I’m messing around with is a hoverboard thing, help me get better with rotation and vector math. Right now I’m stuck on trying to get the board to align with the floor normal on a sphere. All the ‘solutions’ online are similar to mine in that they all have the same problem. When either the Y or the X reach approaches (+/-)90 degrees the math seems to ‘break’ and the board no longer aligns to the sphere. So it works on smaller angles/slopes, but beyond 90 it fails.

A couple stuff about my setup:

1. I am using a pawn with artificial gravity.
2. Gravity is turned off when the board is on the ground.
3. This is inside the event tick
4. Using a line trace to find out when on the ground and find the floor normal
5. Using rotation as well

Is there something I’m doing wrong or a way to get around this supposed limitation with normals with this setup? I would greatly appreciate any help.  
Thanks!

 ![341027-blueprinthelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/3/683bd00132cfd9798dd1739c0b6aa9bcab5750ce.png)
