Why use it
The method is `const`, so it does not mutate the object through this API surface.
EPOK RUNTIME
Method · 1 overload
Performs `raycast batch` as part of bounded AABB collision queries and movement.
void raycast_batch(const RaycastQueryT<Number>* queries,SpatialHitT<Number>* results,size_t count, uint32_t mask=0xffffffffu,int ignore=-1,bool triggers=false) constPerforms `raycast batch` as part of bounded AABB collision queries and movement.
| Parameter | Type | Meaning |
|---|---|---|
queries | const RaycastQueryT<Number> * | Value supplied for queries. Keep referenced or pointed-to data valid for the complete call. |
results | SpatialHitT<Number> * | Value supplied for results. Keep referenced or pointed-to data valid for the complete call. |
count | size_t | Value supplied for count. Keep referenced or pointed-to data valid for the complete call. |
mask | uint32_t | Value supplied for mask. Keep referenced or pointed-to data valid for the complete call. |
ignore | int | Value supplied for ignore. Keep referenced or pointed-to data valid for the complete call. |
triggers | bool | Value supplied for triggers. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#include "collision.hpp"
// Assume these named values have been initialized with valid data:
// const RaycastQueryT<Number> * queries
// SpatialHitT<Number> * results
// size_t count
// uint32_t mask
// int ignore
// bool triggers
epok::CollisionWorld& object = /* obtain a valid instance */;
object.raycast_batch(queries, results, count, mask, ignore, triggers);The method is `const`, so it does not mutate the object through this API surface.
Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.
Declared in runtime/collision.hpp:223
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.Methodnote_enabledPerforms `note enabled` as part of bounded AABB collision queries and movement.MethodoverlapReturns total matches; only the first output_capacity indices are written.MethodraycastSegment query: delta is the complete displacement, not a unit direction.MethodsetSets set as part of bounded AABB collision queries and movement.Methodset_cachedReturns whether bounds were rebuilt.Methodupdate_triggersUpdates triggers as part of bounded AABB collision queries and movement.Function template