Epok Engine

EPOK RUNTIME

epok::raycast_batch

Function · 1 overload

Function

One synchronized world snapshot for independent queries.

Belongs to
epok
Header
epok.hpp
Overloads
1

Declaration

Declaration
void raycast_batch(const RaycastQuery* queries,SpatialHit* results,size_t count,uint32_t mask=0xffffffffu,const ActorData* ignore=nullptr,bool triggers=false)

One synchronized world snapshot for independent queries.

ParameterTypeMeaning
queriesconst RaycastQuery *Value supplied for queries. Keep referenced or pointed-to data valid for the complete call.
resultsSpatialHit *Value supplied for results. Keep referenced or pointed-to data valid for the complete call.
countsize_tValue supplied for count. Keep referenced or pointed-to data valid for the complete call.
maskuint32_tValue supplied for mask. Keep referenced or pointed-to data valid for the complete call.
ignoreconst ActorData *Value supplied for ignore. Keep referenced or pointed-to data valid for the complete call.
triggersboolValue supplied for triggers. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "epok.hpp"

// Assume these named values have been initialized with valid data:
// const RaycastQuery * queries
// SpatialHit * results
// size_t count
// uint32_t mask
// const ActorData * ignore
// bool triggers

epok::raycast_batch(queries, results, count, mask, ignore, triggers);

Why use it

It provides direct, allocation-conscious access to the epok module. No exception-based error path is implied by the signature.

Trade-offs and warnings

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/epok.hpp:292

Related members