MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / updateWorldTransform

Method updateWorldTransform

Source/3rdParty/spine/Skeleton.cpp:213–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void Skeleton::updateWorldTransform(Physics physics) {
214 _update++;
215
216 if (_drawOrder._appliedPose == &_drawOrder._constrainedPose) _drawOrder.reset();
217 Posed **resetCache = _resetCache.buffer();
218 for (size_t i = 0, n = _resetCache.size(); i < n; i++) {
219 resetCache[i]->resetConstrained();
220 }
221
222 Update **updateCache = _updateCache.buffer();
223 for (size_t i = 0, n = _updateCache.size(); i < n; i++) {
224 updateCache[i]->update(*this, physics);
225 }
226}
227
228void Skeleton::setupPose() {
229 setupPoseBones();

Callers 3

initMethod · 0.45
playMethod · 0.45
updateMethod · 0.45

Calls 5

bufferMethod · 0.80
resetConstrainedMethod · 0.80
resetMethod · 0.45
sizeMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected