EPOK RUNTIME
epok::RemoteTransform2DComponent
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
---- RemoteTransform2D -------------------------------------------------------------------- Copies this actor's world position, rotation and/or scale onto `target` every simulation step, so a node can follow another without being attached to it.
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::RemoteTransform2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
link2dExposes `link2d` on `epok::RemoteTransform2DComponent` for the world2d content module.Fieldstatic_class_idExposes `static_class_id` on `epok::RemoteTransform2DComponent` for the world2d content module.VariabletargetExposes `target` on `epok::RemoteTransform2DComponent` for the world2d content module.Fieldupdate_positionExposes `update_position` on `epok::RemoteTransform2DComponent` for the world2d content module.Fieldupdate_rotationExposes `update_rotation` on `epok::RemoteTransform2DComponent` for the world2d content module.Fieldupdate_scaleExposes `update_scale` on `epok::RemoteTransform2DComponent` for the world2d content module.FieldPublic methods
~RemoteTransform2DComponentReleases the resources owned by `epok::RemoteTransform2DComponent`.destructorclass_idPerforms `class id` as part of the world2d content module.Methodget_targetReturns target as part of the world2d content module.Methodlevel_attachedPerforms `level attached` as part of the world2d content module.MethodpushPushes the transform once.Methodset_targetSets target as part of the world2d content module.Method