UKismetMathLibrary::Vector_Down
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the Unreal Engine world down direction constant (0, 0, -1), the -Z axis.
Caveats & Gotchas
- • Identical to negating Vector_Up(). Both are valid; choose based on readability.
- • Default gravity acts along this axis, but if you have changed the gravity direction in your physics scene, this constant will NOT match the actual gravity vector. Query the physics scene directly in that case.
Signature
static UE_INL_API FVector Vector_Down(); Return Type
FVector Example
Line trace downward to find the ground C++
FVector Start = Actor->GetActorLocation();
FVector End = Start + UKismetMathLibrary::Vector_Down() * 1000.0f;
FHitResult Hit;
GetWorld()->LineTraceSingleByChannel(Hit, Start, End, ECC_WorldStatic); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?