Epok Engine

EPOK RUNTIME

epok::ColliderT::heights

Field

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

C++ example
#include "collision.hpp"

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

When it helps

Use this member when you need direct access to the state represented by its declared type.

Trade-offs and warnings

Direct field access has no validation step. Keep the owning object alive, respect units and ranges, and do not mutate state while hardware or another subsystem is consuming it.

Declared in runtime/collision.hpp:30