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 towards `target` (the owner's world position).
void follow(const Fixed* target, Fixed dt)One simulation step towards `target` (the owner's world position).
| Parameter | Type | Meaning |
|---|---|---|
target | const Fixed * | Not documented; consult the linked header. |
dt | Fixed | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "world2d_components.hpp"
// Assume these named values have been initialized with valid data:
// const Fixed * target
// Fixed dt
epok::Camera2DComponent& object = /* obtain a valid instance */;
object.follow(target, dt);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_components.hpp:304
class_idPerforms `class id` as part of the world2d components module.Methodclear_limitsClears limits as part of the world2d components module.Methodget_zoomReturns zoom as part of the world2d components module.Methodis_currentReports whether current as part of the world2d components module.Methodlevel_attachedPerforms `level attached` as part of the world2d components module.Methodmake_currentPerforms `make current` as part of the world2d components module.Methodreset_smoothingJump to the target this step instead of smoothing towards it.Methodscreen_center_xPerforms `screen center x` as part of the world2d components module.Methodscreen_center_yPerforms `screen center y` as part of the world2d components module.Methodset_limitsSets limits as part of the world2d components module.Methodset_offsetSets offset as part of the world2d components module.Methodset_zoomSets zoom as part of the world2d components module.Method