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.
Returns the total number of matches; only the first `output_capacity` are written.
size_t overlap(const Aabb2D& box, uint16_t* output, size_t output_capacity, uint32_t mask = 0xffffffffu, int ignore = -1, bool triggers = true) constReturns the total number of matches; only the first `output_capacity` are written.
| Parameter | Type | Meaning |
|---|---|---|
box | const Aabb2D & | Not documented; consult the linked header. |
output | uint16_t * | Not documented; consult the linked header. |
output_capacity | size_t | Not documented; consult the linked header. |
mask | uint32_t | Not documented; consult the linked header. |
ignore | int | Not documented; consult the linked header. |
triggers | bool | Not documented; consult the linked header. |
Returns: size_t. Consult the linked header for its meaning.
#include "world2d.hpp"
// Assume these named values have been initialized with valid data:
// const Aabb2D & box
// uint16_t * output
// size_t output_capacity
// uint32_t mask
// int ignore
// bool triggers
epok::CollisionWorld2D& object = /* obtain a valid instance */;
auto result = object.overlap(box, output, output_capacity, mask, ignore, triggers);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d.hpp:540
boundsPerforms `bounds` as part of the world2d module.MethodcapacityPerforms `capacity` as part of the world2d module.MethodclearClears clear as part of the world2d module.MethodcolliderPerforms `collider` as part of the world2d module.MethoddisablePerforms `disable` as part of the world2d module.MethodgenerationPerforms `generation` as part of the world2d module.MethodlivePerforms `live` as part of the world2d module.Methodmove_and_slide_2dAxis-separated resolution: X is applied first and clipped against every blocking box whose Y span overlaps, then Y is applied against the updated position.MethodpositionPerforms `position` as part of the world2d module.Methodraycast2d`displacement` is the complete segment, not a unit direction.MethodsetSets set as part of the world2d module.MethodshrinkDrops trailing disabled slots from the scanned range after a burst of temporary entries, so later queries do not walk them.Method