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

Method update

tests/cpp-tests/Source/MeshRendererTest/MeshRendererTest.cpp:1270–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1268}
1269
1270void Animate3DTest::update(float dt)
1271{
1272 if (_state == State::HURT_TO_SWIMMING)
1273 {
1274 _elapseTransTime += dt;
1275
1276 if (_elapseTransTime >= Animate3D::getTransitionTime())
1277 {
1278 _mesh->stopAction(_hurt);
1279 _state = State::SWIMMING;
1280 }
1281 }
1282 else if (_state == State::SWIMMING_TO_HURT)
1283 {
1284 _elapseTransTime += dt;
1285 if (_elapseTransTime >= Animate3D::getTransitionTime())
1286 {
1287 _mesh->stopAction(_swim);
1288 _state = State::HURT;
1289 }
1290 }
1291}
1292
1293void Animate3DTest::addMeshRenderer()
1294{

Callers

nothing calls this directly

Calls 15

getTransitionTimeFunction · 0.85
format_to_zFunction · 0.85
getInstanceFunction · 0.85
createFromAxisAngleFunction · 0.85
getChildByTagFunction · 0.85
Color4FFunction · 0.50
Vec2Function · 0.50
Vec3Function · 0.50
stopActionMethod · 0.45
sizeMethod · 0.45
setStringMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected