Added VectorInterpolation function. Fixed time bug for particles.

This commit is contained in:
Stiffly
2015-10-16 12:43:40 +02:00
parent 0600230ed4
commit bf82e549aa
3 changed files with 39 additions and 25 deletions
+2
View File
@@ -107,6 +107,8 @@ namespace dd
void CreateParticleEmitter(EntityID entity);
void UpdateParticleEmitters(double dt); //TODO: Remove them and particles if needed.
float ScalarInterpolation(float timeProgress, std::vector<float> spectrum);
glm::vec3 VectorInterpolation(float timeProgress, std::vector<glm::vec3> spectrum);
EventRelay<PhysicsSystem, Events::SetImpulse> m_SetImpulse;
bool SetImpulse(const Events::SetImpulse &event);