Navigation
API > API/Runtime > API/Runtime/AnimGraphRuntime > API/Runtime/AnimGraphRuntime/UKismetAnimationLibrary
References
| Module | AnimGraphRuntime |
| Header | /Engine/Source/Runtime/AnimGraphRuntime/Public/KismetAnimationLibrary.h |
| Include | #include "KismetAnimationLibrary.h" |
| Source | /Engine/Source/Runtime/AnimGraphRuntime/Private/KismetAnimationLibrary.cpp |
UFUNCTION (BlueprintPure, Category="Animation|Utilities")
static float CalculateDirection
(
const FVector & Velocity,
const FRotator & BaseRotation
)
Remarks
Returns degree of the angle between Velocity and Rotation forward vector The range of return will be from [-180, 180]. Useful for feeding directional blendspaces.
Parameters
| Name | Description |
|---|---|
| Velocity | The velocity to use as direction relative to BaseRotation |
| BaseRotation | The base rotation, e.g. of a pawn |