MCPcopy Create free account
hub / github.com/axmolengine/axmol / update

Method update

tests/cpp-tests/Source/ParticleTest/ParticleTest.cpp:741–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741void DemoTimeScale::update(float dt)
742{
743 auto p = (ParticleSystem*)getChildByTag(2);
744
745 elapsedTime += Director::getInstance()->getDeltaTime();
746 auto scale = (sin(elapsedTime * 4) + 1.0F) / 2.0F;
747 p->setTimeScale(scale);
748}
749
750//------------------------------------------------------------------
751//

Callers

nothing calls this directly

Calls 7

getChildByTagFunction · 0.85
getInstanceFunction · 0.85
format_to_zFunction · 0.85
getDeltaTimeMethod · 0.80
updateFunction · 0.50
setTimeScaleMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected