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.
Finds path as part of the world2d navigation module.
size_t find_path(const Fixed* from, const Fixed* to, Fixed (*out)[2], size_t capacity, bool& reached) constFinds path as part of the world2d navigation module.
| Parameter | Type | Meaning |
|---|---|---|
from | const Fixed * | Not documented; consult the linked header. |
to | const Fixed * | Not documented; consult the linked header. |
out | Fixed (*)[2] | Not documented; consult the linked header. |
capacity | size_t | Not documented; consult the linked header. |
reached | bool & | Not documented; consult the linked header. |
Returns: size_t. Consult the linked header for its meaning.
#include "world2d_navigation.hpp"
// Assume these named values have been initialized with valid data:
// const Fixed * from
// const Fixed * to
// Fixed (*)[2] out
// size_t capacity
// bool & reached
epok::NavigationRegion2DComponent& object = /* obtain a valid instance */;
auto result = object.find_path(from, to, out, capacity, reached);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_navigation.hpp:458
~NavigationRegion2DComponentReleases the resources owned by `epok::NavigationRegion2DComponent`.destructorclass_idPerforms `class id` as part of the world2d navigation module.MethodcoversWhether the region is the one to plan from `p`: inside the grid, or on the mesh.Methodis_enabledReports whether enabled as part of the world2d navigation module.Methodis_walkableWhether a world point is inside the region and free to walk on.Methodlevel_attachedPerforms `level attached` as part of the world2d navigation module.Methodset_enabledSets enabled as part of the world2d navigation module.Method