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