Example #1
0
sf::Time getRemainingLifetime(const Particle& particle)
{
	return getTotalLifetime(particle) - getElapsedLifetime(particle);
}
Example #2
0
float getElapsedRatio(const Particle& particle)
{
	return getElapsedLifetime(particle) / getTotalLifetime(particle);
}
Example #3
0
 float getElapsedRatio(const Particle& particle)
 {
     return (getElapsedLifetime(particle).asSeconds() / getTotalLifetime(particle).asSeconds());
 }