UKismetMathLibrary::Vector_Backward
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the Unreal Engine world backward direction constant (-1, 0, 0), the -X axis.
Caveats & Gotchas
- • Exactly equivalent to negating Vector_Forward(); both produce (-1, 0, 0). Prefer whichever makes intent clearer.
- • This is the world -X axis, not an actor's local backward. Use -AActor::GetActorForwardVector() for actor-relative backward after rotation.
Signature
static UE_INL_API FVector Vector_Backward(); Return Type
FVector Example
Spawn an actor behind the player C++
FVector BehindOffset = UKismetMathLibrary::Vector_Backward() * 200.0f;
FVector SpawnPos = Player->GetActorLocation() + BehindOffset;
GetWorld()->SpawnActor<AMyActor>(AMyActor::StaticClass(), SpawnPos, FRotator::ZeroRotator); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?