RealDocs

UKismetMathLibrary::Vector_Backward

function Engine Blueprint Since 4.0
#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);

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.