Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
Task_SetPosition.h File Reference

Atomic task that sets the entity's position. More...

#include "../../IAtomicTask.h"
+ Include dependency graph for Task_SetPosition.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::Task_SetPosition
 Sets entity position via ECS or LocalBlackboard. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Atomic task that sets the entity's position.

Author
Olympe Engine
Date
2026-03-08

Task_SetPosition teleports an entity to a specified position.

Parameters (ParameterMap): "Target" (Vector) — destination position (required).

World mode (ctx.ComponentFacade with Position set): Writes directly to the entity's PositionComponent.

Headless mode (ComponentFacade is nullptr or Position is null): Writes to "local:Position" in ctx.LocalBB.

Returns: Success after writing the position. Failure if "Target" is missing.

C++14 compliant - no C++17/20 features.

Definition in file Task_SetPosition.h.