Epok Engine

EPOK RUNTIME

epok::RaycastQueryT::origin

Field

Field

Exposes `origin` on `epok::RaycastQueryT` for bounded AABB collision queries and movement.

Belongs to
epok::RaycastQueryT
Header
collision.hpp

Declaration

Declaration
Number origin[3]

Exposes `origin` on `epok::RaycastQueryT` for bounded AABB collision queries and movement.

Type
Number[3]
Storage
Per instance

Example

C++ example
#include "collision.hpp"
epok::RaycastQueryT& object = /* obtain a valid instance */;

auto firstValue = object.origin[0];

// When mutation is valid for this object:
// object.origin[0] = replacement;

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:35