Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
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.
The two ends of a joint: positions, bodies (null for a fixed end) and whether valid.
bool joint_ends(Joint2DComponent& joint, Fixed* pa, Fixed* pb, RigidBody2DComponent*& a, RigidBody2DComponent*& b)The two ends of a joint: positions, bodies (null for a fixed end) and whether valid.
| Parameter | Type | Meaning |
|---|---|---|
joint | Joint2DComponent & | Not documented; consult the linked header. |
pa | Fixed * | Not documented; consult the linked header. |
pb | Fixed * | Not documented; consult the linked header. |
a | RigidBody2DComponent *& | Not documented; consult the linked header. |
b | RigidBody2DComponent *& | Not documented; consult the linked header. |
Returns: bool. Consult the linked header for its meaning.
#include "world2d_service.hpp"
// Assume these named values have been initialized with valid data:
// Joint2DComponent & joint
// Fixed * pa
// Fixed * pb
// RigidBody2DComponent *& a
// RigidBody2DComponent *& b
epok::world2d::Service& object = /* obtain a valid instance */;
auto result = object.joint_ends(joint, pa, pb, a, b);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_service.hpp:831
active_cameraPerforms `active camera` as part of the world2d service module.Methodactor_atPerforms `actor at` as part of the world2d service module.MethodbackgroundBackground colour of the active camera, or null to keep the engine default.MethodconstrainPerforms `constrain` as part of the world2d service module.MethoddispatchPerforms `dispatch` as part of the world2d service module.Function templateeach_particle_ofVisits (position, age fraction) of every live particle of `emitter`, oldest slots first.Function templateedit_forgetPerforms `edit forget` as part of the world2d service module.Methodedit_lookup---- runtime tile edits ------------------------------------------------------------Methodedit_storePerforms `edit store` as part of the world2d service module.MethodexchangeA one-dimensional collision along `axis`, with the lower restitution of the two.MethodfollowPerforms `follow` as part of the world2d service module.MethodmagnitudePerforms `magnitude` as part of the world2d service module.Method