{ }Blueprint → C++

Unreal Engine 5 · Blueprint → C++

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

The Blueprint Add Actor Local Offset node maps to AddActorLocalOffset(FVector DeltaLocation, bool bSweep) in C++. It moves the actor relative to its own orientation.

Blueprint node & C++ equivalent

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

What does the Add Actor Local Offset node do?

Add Actor Local Offset moves an actor by a delta expressed in its local space, so the displacement is rotated by the actor's current orientation. A delta of FVector(100.f, 0.f, 0.f) moves the actor 100 units along its own forward direction, whichever way it is facing. In C++ this is AActor::AddActorLocalOffset.

How to use it in C++

Call AddActorLocalOffset(FVector(100.f, 0.f, 0.f), /*bSweep=*/true);. The first argument is the local-space displacement and the second is bSweep, which sweeps against blocking collision and stops on a hit when true. This is the common way to step an actor forward without recomputing its forward vector by hand.

Choose local offset for movement that should follow the actor's facing, and AddActorWorldOffset when you need fixed world-axis movement.

Frequently asked questions

How do I move an actor forward in Unreal Engine 5 C++?+

Call AddActorLocalOffset with a positive X delta, such as FVector(100.f, 0.f, 0.f), because local X is the actor's forward direction.

Does AddActorLocalOffset account for the actor's rotation?+

Yes. The delta is interpreted in local space and rotated by the actor's current orientation, so it follows the direction the actor faces.

Related AActor nodes

View all AActor nodes →