# How can I best use Rotation of FHitResult?

**URL:** <https://forums.unrealengine.com/t/how-can-i-best-use-rotation-of-fhitresult/284291>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 26, 2014, 4:40pm UTC](https://forums.unrealengine.com/t/how-can-i-best-use-rotation-of-fhitresult/284291 "2014-05-26T16:40:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [May 27, 2014, 1:55am UTC](https://forums.unrealengine.com/t/how-can-i-best-use-rotation-of-fhitresult/284291/2 "2014-05-27T01:55:17Z")

</div>

#ImpactNormal

What you want is

```
Hit.ImpactNormal

```

This is the Vector representing the facing direction of the surface at the point of impact, in world space

to get this as a rotation:

```
const FRotator SurfaceRotation = Hit.ImpactNormal.Rotation();

```

Just know this is in world space and you can decide what qualifies as a sufficient angle for wall jumping

for example

if you wanted all walls to be at elast 70 degrees from the flat ground plan (almost totally vertical)

you would do

```
const FRotator SurfaceRotation = Hit.ImpactNormal.Rotation();
if(FMath::Abs(SurfaceRotation.Pitch) > 70)
{
  //yes this is a wall jump
}

```

to make sure you are getting the numbers you expect

make sure to LOG or output this value so you can see it exactly

```
const FRotator SurfaceRotation = Hit.ImpactNormal.Rotation();

```

#Log / To Screen Wiki

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-i-best-use-rotation-of-fhitresult/284291)._
