Epok Engine

EPOK RUNTIME

epok::collider_aabb

Function · 1 overload

Function

Performs `collider aabb` as part of the epok module.

Belongs to
epok
Header
epok.hpp
Overloads
1

Declaration

Declaration
bool collider_aabb(const ActorData& entity,Aabb& output)

Performs `collider aabb` as part of the epok module.

ParameterTypeMeaning
entityconst ActorData &Value supplied for entity. Keep referenced or pointed-to data valid for the complete call.
outputAabb &Value supplied for output. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "epok.hpp"

// Assume these named values have been initialized with valid data:
// const ActorData & entity
// Aabb & output

auto result = epok::collider_aabb(entity, output);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. 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:212

Related members