UAnimInstance::CalculateDirection

Syntax

float CalculateDirection
(
    const FVector & Velocity,
    const FRotator & BaseRotation
) const

Remarks

Returns degree of the angle betwee velocity and Rotation forward vector The range of return will be from [-180, 180], and this can be used to feed blendspace directional value

References

Module

Engine

Header

Runtime/Engine/Classes/Animation/AnimInstance.h

Source

Runtime/Engine/Private/Animation/AnimInstance.cpp