tested and fixed scale and velocity interpolation. Fix: could not go from lesser value to larger. Added methods for interpolation.

This commit is contained in:
Stiffly
2014-04-27 03:20:14 +02:00
parent 023f49b0ec
commit 28ac8980f2
3 changed files with 53 additions and 48 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ private:
std::map<EntityID, double> m_TimeSinceLastSpawn;
float RandomizeAngle(float spreadAngle);
void ScaleInterpolation(double timeProgress, std::vector<float> scaleSpectrum, glm::vec3 &scale);
void VelocityInterpolation(double timeProgress, std::vector<glm::vec3> velocitySpectrum, glm::vec3 &velocity);
};
}