Merge pull request #798 from slakedclay/patch-1

Create VelocityInterpolator
This commit is contained in:
Max Kopjev
2023-09-14 20:14:15 +03:00
committed by GitHub
@@ -0,0 +1,12 @@
using Microsoft.Xna.Framework;
namespace MonoGame.Extended.Particles.Modifiers.Interpolators
{
public class VelocityInterpolator : Interpolator<Vector2>
{
public override unsafe void Update(float amount, Particle* particle)
{
particle->Velocity = (EndValue - StartValue) * amount + StartValue;
}
}
}