UKismetMathLibrary::Vector_Zero
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the 3D zero vector constant (0, 0, 0). Primarily exposed for Blueprint and scripting contexts where FVector::ZeroVector is not directly accessible.
Caveats & Gotchas
- • In C++ code, prefer using FVector::ZeroVector directly — it is a static constant and avoids any function call overhead, even if the compiler can optimize this call away.
- • In Blueprint, this node appears under Math > Vector as the 'Zero Vector' constant node. It is equivalent to making a literal FVector with all components set to 0.
Signature
static UE_INL_API FVector Vector_Zero(); Return Type
FVector Example
Reset an actor's velocity to zero C++
// In C++ prefer FVector::ZeroVector; this shows the Blueprint-callable equivalent
FVector Zero = UKismetMathLibrary::Vector_Zero();
MovementComponent->Velocity = Zero; See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?