blob: bad04b19235c1d51324331d4809c847e098e8fb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}
}
}
|