Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Description
Given a direction vector and a surface normal, returns the vector reflected across the surface normal. Produces a result like shining a laser at a mirror!
| Name | GetReflectionVector |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static FVector GetReflectionVector
(
const FVector & Direction,
const FVector & SurfaceNormal
)
Reflected vector.
Parameters
| Name | Remarks |
|---|---|
| Direction | Direction vector the ray is coming from. |
| SurfaceNormal | A normal of the surface the ray should be reflected on. |