EPOK RUNTIME
epok::CharacterMotor2DComponent
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
Class declared by the character2d module for pixel-unit character commands and derivable actors over the existing 2D body solver.
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 "character2d.hpp"
epok::CharacterMotor2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
automatic_tickExposes `automatic_tick` on `epok::CharacterMotor2DComponent` for pixel-unit character commands and derivable actors over the existing 2D body solver.FieldbodyExposes `body` on `epok::CharacterMotor2DComponent` for pixel-unit character commands and derivable actors over the existing 2D body solver.FieldgravityExposes `gravity` on `epok::CharacterMotor2DComponent` for pixel-unit character commands and derivable actors over the existing 2D body solver.Fieldjump_speedExposes `jump_speed` on `epok::CharacterMotor2DComponent` for pixel-unit character commands and derivable actors over the existing 2D body solver.Fieldstatic_class_idExposes `static_class_id` on `epok::CharacterMotor2DComponent` for pixel-unit character commands and derivable actors over the existing 2D body solver.Variabletick_groupExposes `tick_group` on `epok::CharacterMotor2DComponent` for pixel-unit character commands and derivable actors over the existing 2D body solver.VariablePublic methods
begin_playBegins play as part of pixel-unit character commands and derivable actors over the existing 2D body solver.Methodclass_idPerforms `class id` as part of pixel-unit character commands and derivable actors over the existing 2D body solver.Methodend_playEnds play as part of pixel-unit character commands and derivable actors over the existing 2D body solver.MethodmotionPerforms `motion` as part of pixel-unit character commands and derivable actors over the existing 2D body solver.Methodon_disablePerforms `on disable` as part of pixel-unit character commands and derivable actors over the existing 2D body solver.Methodreset_motionResets motion as part of pixel-unit character commands and derivable actors over the existing 2D body solver.MethodsimulatePerforms `simulate` as part of pixel-unit character commands and derivable actors over the existing 2D body solver.MethodstopStops stop as part of pixel-unit character commands and derivable actors over the existing 2D body solver.MethodsubmitPerforms `submit` as part of pixel-unit character commands and derivable actors over the existing 2D body solver.MethodtickPerforms `tick` as part of pixel-unit character commands and derivable actors over the existing 2D body solver.Method