EPOK RUNTIME
epok::Collider2DComponent
Class
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.
Class
---- Collider2D ------------------------------------------------------------------------ One box or circle placed at the owner's world position plus `shape.offset` (the offset turns and scales with the owner; box extents scale but stay axis-aligned).
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "world2d_components.hpp"
epok::Collider2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
link2dExposes `link2d` on `epok::Collider2DComponent` for the world2d components module.FieldshapeExposes `shape` on `epok::Collider2DComponent` for the world2d components module.FieldslotIndex in the collision world for the current step, or -1.Fieldstatic_class_idExposes `static_class_id` on `epok::Collider2DComponent` for the world2d components module.VariablePublic methods
~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_box_sizeFull box size in pixels (width, height), centred on the shape offset.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