RealDocs

UKismetMathLibrary::Vector_Left

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns the Unreal Engine world left direction constant (0, -1, 0), the -Y axis.

Caveats & Gotchas

  • Equivalent to negating Vector_Right(); the two are interchangeable for constant expressions.
  • This is the world -Y axis. For actor-space left after rotation, negate AActor::GetActorRightVector().

Signature

static UE_INL_API FVector Vector_Left();

Return Type

FVector

Example

Offset a spawned actor to the left C++
FVector LeftOffset = UKismetMathLibrary::Vector_Left() * 150.0f;
FVector SpawnPos = ReferenceActor->GetActorLocation() + LeftOffset;
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.