EPOK RUNTIME
epok::Path2DComponent
Class
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.
Class
---- Path2D ------------------------------------------------------------------------------- A polyline (curves are sampled by the editor) with its cumulative lengths, in the owner's local pixels.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "world2d_content.hpp"
epok::Path2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
closedExposes `closed` on `epok::Path2DComponent` for the world2d content module.Fieldlengthsdistance from the first point to each pointFieldlink2dExposes `link2d` on `epok::Path2DComponent` for the world2d content module.Fieldpoint_countExposes `point_count` on `epok::Path2DComponent` for the world2d content module.Fieldpointsx, y pairsFieldstatic_class_idExposes `static_class_id` on `epok::Path2DComponent` for the world2d content module.VariablePublic methods
~Path2DComponentReleases the resources owned by `epok::Path2DComponent`.destructorclass_idPerforms `class id` as part of the world2d content module.Methodget_lengthReturns length as part of the world2d content module.Methodlevel_attachedPerforms `level attached` as part of the world2d content module.Methodsample_localThe local point and unit direction at `distance` along the path, clamped (or wrapped, for a closed path) to its length.Methodsample_xWorld position at `distance` along the path.Methodsample_yPerforms `sample y` as part of the world2d content module.Method