Why use it
The method is `const`, so it does not mutate the object through this API surface. The boolean result makes success, availability or state explicit without exceptions.
EPOK RUNTIME
Method · 1 overload
Barycentric floor query in Q8; the closest reachable layer wins.
bool floor(int32_t x,int32_t z,int32_t near,int32_t reach,int32_t& y)constBarycentric floor query in Q8; the closest reachable layer wins.
| Parameter | Type | Meaning |
|---|---|---|
x | int32_t | Value supplied for x. Keep referenced or pointed-to data valid for the complete call. |
z | int32_t | Value supplied for z. Keep referenced or pointed-to data valid for the complete call. |
near | int32_t | Value supplied for near. Keep referenced or pointed-to data valid for the complete call. |
reach | int32_t | Value supplied for reach. Keep referenced or pointed-to data valid for the complete call. |
y | int32_t & | Value supplied for y. 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.
#include "navigation.hpp"
// Assume these named values have been initialized with valid data:
// int32_t x
// int32_t z
// int32_t near
// int32_t reach
// int32_t & y
epok::nav::World& object = /* obtain a valid instance */;
auto result = object.floor(x, z, near, reach, y);The method is `const`, so it does not mutate the object through this API surface. The boolean result makes success, availability or state explicit without exceptions.
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/navigation.hpp:84
add_obstacleAdds obstacle as part of the navigation module.MethodcancelPerforms `cancel` as part of the navigation module.Methodedge_openPerforms `edge open` as part of the navigation module.MethodgetReturns get as part of the navigation module.MethodlocatePerforms `locate` as part of the navigation module.MethodoccupyPerforms `occupy` as part of the navigation module.MethodrebuildReplace the current topology (procedural levels/streaming).Methodremove_obstacleRemoves obstacle as part of the navigation module.MethodreplanPerforms `replan` as part of the navigation module.MethodrequestRequests request as part of the navigation module.MethodreservePerforms `reserve` as part of the navigation module.MethodresetResets reset as part of the navigation module.Method