# Angle of wall (degrees) in relation to player?

**URL:** <https://forums.unrealengine.com/t/angle-of-wall-degrees-in-relation-to-player/754449>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 22, 2023, 12:39am UTC](https://forums.unrealengine.com/t/angle-of-wall-degrees-in-relation-to-player/754449 "2023-01-22T00:39:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![High500](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/high500/32/906557_2.png) [@High500](https://forums.unrealengine.com/u/High500)\
**Post date:** [January 22, 2023, 8:39am UTC](https://forums.unrealengine.com/t/angle-of-wall-degrees-in-relation-to-player/754449/3 "2023-01-22T08:39:07Z")

</div>

I gather you mean the angle where the player intersects the wall if you was to draw a line (ie a trace) to it? You could use maybe Cartesian to Polar coordinates which would give you the angle.

Find the coords where the player line of sight meets the wall (object) and perform the conversion.

Not sure about @Husky211 response as i have never performed this and his method maybe much better, but check this out:

> [@Polar Coordinate Material Function](https://forums.unrealengine.com/t/polar-coordinate-material-function/1496/5):
>
> Why not post a screenshot of the material here? I’d suppose many people feel strange about having to download a single material function from an external site, espacially for a relatively simple one like this. For anyone interested in converting from cartesian to polar or spherical coordinates, back and forth, check out this post:

Hope it helps

Stewart

---

_[View the full topic](https://forums.unrealengine.com/t/angle-of-wall-degrees-in-relation-to-player/754449)._
