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 total matches; only the first output_capacity indices are written.
size_t overlap(const AabbT<Number>& box,uint16_t* output,size_t output_capacity,uint32_t mask=0xffffffffu,int ignore=-1,bool triggers=true) constReturns total matches; only the first output_capacity indices are written.
| Parameter | Type | Meaning |
|---|---|---|
box | const AabbT<Number> & | 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 "collision.hpp"
// Assume these named values have been initialized with valid data:
// const AabbT<Number> & box
// uint16_t * output
// size_t output_capacity
// uint32_t mask
// int ignore
// bool triggers
epok::CollisionWorld& 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/collision.hpp:370
begin_syncBegins sync as part of bounded AABB collision queries and movement.MethodboundsPerforms `bounds` as part of bounded AABB collision queries and movement.MethodclearClears clear as part of bounded AABB collision queries and movement.MethodgroundDownward box sweep uses the complete footprint, including ledges missed by a center ray.Methodhas_trigger_pairsReports whether trigger pairs as part of bounded AABB collision queries and movement.Methodmove_and_slidePerforms `move and slide` as part of bounded AABB collision queries and movement.MethodraycastSegment query: delta is the complete displacement, not a unit direction.Methodraycast_batchPerforms `raycast batch` as part of bounded AABB collision queries and movement.MethodsetSets set as part of bounded AABB collision queries and movement.Methodset_cachedReturns whether bounds were rebuilt.MethodtranslateA root actor's movement changes only translation.Methodupdate_triggersUpdates triggers as part of bounded AABB collision queries and movement.Function template