{ }Blueprint → C++

Unreal Engine 5 · Blueprint → C++

Add Actor World Offset in Unreal Engine 5 C++UE Docs

The Blueprint Add Actor World Offset node maps to AddActorWorldOffset(FVector DeltaLocation, bool bSweep) in C++. It moves the actor relative to its current position along world axes.

Blueprint node & C++ equivalent

C++
AddActorWorldOffset(FVector(100.f, 0.f, 0.f), /*bSweep=*/true);

What does the Add Actor World Offset node do?

Add Actor World Offset moves an actor by a delta in world space, ignoring the actor's own rotation. A delta of FVector(100.f, 0.f, 0.f) always moves the actor along the world X axis regardless of which way it faces. In C++ this is AActor::AddActorWorldOffset.

How to use it in C++

Call AddActorWorldOffset(FVector(100.f, 0.f, 0.f), /*bSweep=*/true);. The first argument is the world-space displacement and the second is bSweep. With bSweep true the move sweeps against blocking collision and stops on a hit instead of passing through. Pass false to teleport the actor through obstacles.

Use world offset when you want absolute-axis movement. For movement relative to the actor's facing direction, use AddActorLocalOffset instead.

Frequently asked questions

What does bSweep do in AddActorWorldOffset in UE5?+

When bSweep is true the actor sweeps to its new position and stops against blocking collision. When false it moves directly, passing through obstacles.

What is the difference between AddActorWorldOffset and AddActorLocalOffset?+

AddActorWorldOffset moves along world axes ignoring rotation, while AddActorLocalOffset moves relative to the actor's own orientation.

Related AActor nodes

View all AActor nodes →