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.
Sets offset as part of the world2d components module.
void set_offset(Fixed x, Fixed y)Sets offset as part of the world2d components module.
| Parameter | Type | Meaning |
|---|---|---|
x | Fixed | Not documented; consult the linked header. |
y | Fixed | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "world2d_components.hpp"
// Assume these named values have been initialized with valid data:
// Fixed x
// Fixed y
epok::Camera2DComponent& object = /* obtain a valid instance */;
object.set_offset(x, y);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_components.hpp:287
class_idPerforms `class id` as part of the world2d components module.Methodclear_limitsClears limits as part of the world2d components module.MethodfollowOne simulation step towards `target` (the owner's world position).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_zoomSets zoom as part of the world2d components module.Method