EPOK RUNTIME
epok::PathFollow2DComponent
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
---- PathFollow2D ------------------------------------------------------------------------- Moves its actor along a Path2D: the path of `path` (another actor), or of the actor it is attached to.
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::PathFollow2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
link2dExposes `link2d` on `epok::PathFollow2DComponent` for the world2d content module.Fieldloopingwrap at the ends (always, on a closed path)FieldmovingExposes `moving` on `epok::PathFollow2DComponent` for the world2d content module.Fieldoffsetalong / across the pathFieldpathExposes `path` on `epok::PathFollow2DComponent` for the world2d content module.Fieldping_pongor turn back at the endsFieldprogressExposes `progress` on `epok::PathFollow2DComponent` for the world2d content module.Fieldrotatesturn the actor to the path's directionFieldspeedExposes `speed` on `epok::PathFollow2DComponent` for the world2d content module.Fieldstatic_class_idExposes `static_class_id` on `epok::PathFollow2DComponent` for the world2d content module.VariablePublic methods
~PathFollow2DComponentReleases the resources owned by `epok::PathFollow2DComponent`.destructoradvanceOne simulation step: advance, then place the actor.Methodclass_idPerforms `class id` as part of the world2d content module.Methodget_progressReturns progress as part of the world2d content module.Methodget_progress_ratioReturns progress ratio as part of the world2d content module.Methodget_speedReturns speed as part of the world2d content module.Methodis_movingReports whether moving as part of the world2d content module.Methodlevel_attachedPerforms `level attached` as part of the world2d content module.Methodresolve_pathThe Path2D this follower uses.Methodset_movingSets moving as part of the world2d content module.Methodset_progressSets progress as part of the world2d content module.Methodset_progress_ratioProgress as a fraction (0..1) of the path's length.Methodset_speedSets speed as part of the world2d content module.Method