Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Kismet > UKismetMathLibrary
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
Include | #include "Kismet/KismetMathLibrary.h" |
Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
static FVector MirrorVectorByNormal
&40;
FVector InVect,
FVector InNormal
&41;
Remarks
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! Reflected vector.
Parameters
Name | Description |
---|---|
InVect | Direction vector the ray is coming from. |
InNormal | A normal of the surface the ray should be reflected on. |