RealDocs

UKismetMathLibrary::Vector_Up

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

Description

Returns the Unreal Engine world up direction constant (0, 0, 1), the +Z axis.

Caveats & Gotchas

  • Unreal's up axis is +Z, while many DCC tools (Maya, Blender default) use +Y as up. Assets imported without axis correction will appear rotated 90 degrees.
  • This is the world up axis. For a character's local up after tilting or on a slope, use AActor::GetActorUpVector() instead.

Signature

static UE_INL_API FVector Vector_Up();

Return Type

FVector

Example

Apply upward impulse to a physics object C++
UPrimitiveComponent* Mesh = Cast<UPrimitiveComponent>(Actor->GetRootComponent());
if (Mesh && Mesh->IsSimulatingPhysics())
{
    Mesh->AddImpulse(UKismetMathLibrary::Vector_Up() * JumpImpulse, NAME_None, true);
}

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.