Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
One simulation step: advance, then place the actor.
bool advance(Fixed dt, Fixed* moved)One simulation step: advance, then place the actor.
| Parameter | Type | Meaning |
|---|---|---|
dt | Fixed | Not documented; consult the linked header. |
moved | Fixed * | Not documented; consult the linked header. |
Returns: bool. Consult the linked header for its meaning.
#include "world2d_content.hpp"
// Assume these named values have been initialized with valid data:
// Fixed dt
// Fixed * moved
epok::PathFollow2DComponent& object = /* obtain a valid instance */;
auto result = object.advance(dt, moved);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_content.hpp:219
~PathFollow2DComponentReleases the resources owned by `epok::PathFollow2DComponent`.destructorclass_idPerforms `class id` as part of the world2d content module.Methodget_progressReturns progress as part of the world2d content module.Methodget_progress_ratioReturns progress ratio as part of the world2d content module.Methodget_speedReturns speed as part of the world2d content module.Methodis_movingReports whether moving as part of the world2d content module.Methodlevel_attachedPerforms `level attached` as part of the world2d content module.Methodresolve_pathThe Path2D this follower uses.Methodset_movingSets moving as part of the world2d content module.Methodset_progressSets progress as part of the world2d content module.Methodset_progress_ratioProgress as a fraction (0..1) of the path's length.Methodset_speedSets speed as part of the world2d content module.Method