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.
Full box size in pixels (width, height), centred on the shape offset.
void set_box_size(Fixed width, Fixed height)Full box size in pixels (width, height), centred on the shape offset.
| Parameter | Type | Meaning |
|---|---|---|
width | Fixed | Not documented; consult the linked header. |
height | 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 width
// Fixed height
epok::Collider2DComponent& object = /* obtain a valid instance */;
object.set_box_size(width, height);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_components.hpp:381
~Collider2DComponentReleases the resources owned by `epok::Collider2DComponent`.destructorclass_idPerforms `class id` as part of the world2d components module.Methodcollision_layerPerforms `collision layer` as part of the world2d components module.Methodcollision_maskPerforms `collision mask` as part of the world2d components module.Methodis_enabledReports whether enabled as part of the world2d components module.Methodis_triggerReports whether trigger as part of the world2d components module.Methodlevel_attachedPerforms `level attached` as part of the world2d components module.Methodset_circle_radiusSets circle radius as part of the world2d components module.Methodset_collision_layerSets collision layer as part of the world2d components module.Methodset_collision_maskSets collision mask as part of the world2d components module.Methodset_enabledSets enabled as part of the world2d components module.Method