Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Return the FRotator orientation corresponding to the direction in which the vector points. Sets Yaw and Pitch to the proper numbers, and sets Roll to zero because the roll can't be determined from a vector.
| Name | Conv_VectorToRotator |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include Path | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
UFUNCTION (BlueprintPure,
Meta=(DisplayName="Rotation From X Vector", ScriptMethod="Rotator", Keywords="rotation rotate cast convert", BlueprintAutocast),
Category="Math|Conversions")
static UE_FRotator Conv_VectorToRotator
(
FVector InVec
)
FRotator from the Vector's direction, without any roll.