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.
World units in front of the 3D camera, 0 to 128 (the far end of the ordering table).
void set_distance(Fixed value)World units in front of the 3D camera, 0 to 128 (the far end of the ordering table).
| Parameter | Type | Meaning |
|---|---|---|
value | Fixed | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "world2d_tiles.hpp"
// Assume these named values have been initialized with valid data:
// Fixed value
epok::Depth2DComponent& object = /* obtain a valid instance */;
object.set_distance(value);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_tiles.hpp:377
~Depth2DComponentReleases the resources owned by `epok::Depth2DComponent`.destructorclass_idPerforms `class id` as part of the world2d tiles module.Methodget_anchorReturns anchor as part of the world2d tiles module.Methodget_biasReturns bias as part of the world2d tiles module.Methodget_distanceReturns distance as part of the world2d tiles module.Methodis_enabledReports whether enabled as part of the world2d tiles module.Methodlevel_attachedPerforms `level attached` as part of the world2d tiles module.Methodset_anchorA 3D actor whose position gives the depth; an empty id returns to `distance`.Methodset_biasSets bias as part of the world2d tiles module.Methodset_enabledSets enabled as part of the world2d tiles module.Method