Why use it
Template dispatch is resolved at compile time and normally adds no runtime indirection.
EPOK RUNTIME
Function template · 1 overload
Common physics case: an unparented collider.
template<class Object,class MakeLocal> void sync_root(const Object& object,Affine<Number>& world,size_t index,MakeLocal make_local)Common physics case: an unparented collider.
| Parameter | Type | Meaning |
|---|---|---|
object | const Object & | Value supplied for object. Keep referenced or pointed-to data valid for the complete call. |
world | Affine<Number> & | Value supplied for world. Keep referenced or pointed-to data valid for the complete call. |
index | size_t | Value supplied for index. Keep referenced or pointed-to data valid for the complete call. |
make_local | MakeLocal | Value supplied for make_local. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#include "transform_cache.hpp"
// Replace these template arguments with types or values accepted by the declaration:
// Object, MakeLocal
// Assume these named values have been initialized with valid data:
// const Object & object
// Affine<Number> & world
// size_t index
// MakeLocal make_local
epok::TransformCache& object = /* obtain a valid instance */;
object.sync_root<Object, MakeLocal>(object, world, index, make_local);Template dispatch is resolved at compile time and normally adds no runtime indirection.
Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size. This is classified as **Engine internal**. Prefer a higher-level Epok service unless you need this exact control. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.
Declared in runtime/transform_cache.hpp:27