EPOK RUNTIME
epok::Joint2DComponent
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
---- Joint2D -------------------------------------------------------------------------------
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_physics.hpp"
epok::Joint2DComponent& value = /* obtain a valid instance from your game */;Fields and constants
body_a`body_a` empty: the joint node's own position is the fixed end.Fieldbody_b`body_a` empty: the joint node's own position is the fixed end.FielddampingExposes `damping` on `epok::Joint2DComponent` for the world2d physics module.FieldenabledExposes `enabled` on `epok::Joint2DComponent` for the world2d physics module.FieldkindExposes `kind` on `epok::Joint2DComponent` for the world2d physics module.FieldlengthExposes `length` on `epok::Joint2DComponent` for the world2d physics module.Fieldlink2dExposes `link2d` on `epok::Joint2DComponent` for the world2d physics module.Fieldstatic_class_idExposes `static_class_id` on `epok::Joint2DComponent` for the world2d physics module.VariablestiffnessExposes `stiffness` on `epok::Joint2DComponent` for the world2d physics module.FieldPublic methods
~Joint2DComponentReleases the resources owned by `epok::Joint2DComponent`.destructorbreak_jointCuts the joint for good: the rope snaps.Methodclass_idPerforms `class id` as part of the world2d physics module.Methodget_lengthReturns length as part of the world2d physics module.Methodis_enabledReports whether enabled as part of the world2d physics module.Methodlevel_attachedPerforms `level attached` as part of the world2d physics module.Methodset_enabledSets enabled as part of the world2d physics module.Methodset_lengthSets length as part of the world2d physics module.Method