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:
@@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user