UKismetMathLibrary::Conv_Vector4ToRotator

Return the [FRotator](API\Runtime\Core\Math\FRotator) orientation corresponding to the direction in which the vector points.

Windows
MacOS
Linux

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

Syntax

static FRotator Conv_Vector4ToRotator
(
    const FVector4 & InVec
)

Remarks

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.

Returns

FRotator from the Vector's direction, without any roll.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss