![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Atomic task that moves an entity toward a target location. More...
#include "../../IAtomicTask.h"
Include dependency graph for Task_MoveToLocation.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Olympe::Task_MoveToLocation |
| Moves an entity toward a target location each tick. More... | |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Atomic task that moves an entity toward a target location.
Task_MoveToLocation moves an entity toward a specified target position. It operates in dual mode:
Parameters (ParameterMap): "Target" (Vector) - destination position (required) "Speed" (Float) - units per second (optional, default 100.0)
Returns: Running while the entity is more than a small tolerance from Target. Success once the entity reaches the target (or snaps to it on the final step). Failure if the "Position" BB key is missing in headless mode.
C++14 compliant - no C++17/20 features.
Definition in file Task_MoveToLocation.h.