Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Function template · 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.
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 & | Not documented; consult the linked header. |
world | Affine<Number> & | Not documented; consult the linked header. |
index | size_t | Not documented; consult the linked header. |
make_local | MakeLocal | Not documented; consult the linked header. |
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);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/transform_cache.hpp:27
clearClears clear as part of the transform cache module.MethodrevisionPerforms `revision` as part of the transform cache module.MethodsyncPerforms `sync` as part of the transform cache module.Function templatesync_pathA single query needs its target and ancestor path, rather than two full Capacity scans.Function template