MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / OnUpdate

Method OnUpdate

Sources/nCine/Graphics/Particle.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 void Particle::OnUpdate(float timeMult)
34 {
35 if (timeMult >= life_) {
36 life_ = 0.0f; // dead particle
37 setEnabled(false);
38 } else {
39 life_ -= timeMult;
40 move(velocity_ * timeMult);
41 }
42 }
43
44 void Particle::transform()
45 {

Callers 1

UpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected