Epok Engine

EPOK RUNTIME

epok::ColliderT::heights

Field

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.

Field

A height grid, which is the same idea as the ramp taken to two axes and arbitrary steps: a surface to stand on, never an obstacle.

Belongs to
epok::ColliderT
Header
collision.hpp

Declaration

Declaration
const int16_t * heights

A height grid, which is the same idea as the ramp taken to two axes and arbitrary steps: a surface to stand on, never an obstacle.

Type
const int16_t *
Storage
Per instance

Example sketch

C++ example
#include "collision.hpp"

epok::ColliderT& object = /* obtain a valid instance */;
auto value = object.heights;

Trade-offs and warnings

Consult the linked header for the meaning, lifetime and permitted use of this declaration.

Declared in runtime/collision.hpp:57