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.
Shakes the view by up to `amplitude` pixels, fading out over `seconds`.
void shake(Fixed amplitude, Fixed seconds)Shakes the view by up to `amplitude` pixels, fading out over `seconds`.
| Parameter | Type | Meaning |
|---|---|---|
amplitude | Fixed | Not documented; consult the linked header. |
seconds | 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 amplitude
// Fixed seconds
epok::Camera2DComponent& object = /* obtain a valid instance */;
object.shake(amplitude, seconds);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_components.hpp:294
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_offsetSets offset as part of the world2d components module.Method