blob: aff924491e9dd21b56e656c805d468688d8e5fbe (
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 ScaleInterpolator : Interpolator<Vector2>
{
public override unsafe void Update(float amount, Particle* particle)
{
particle->Scale = (EndValue - StartValue) * amount + StartValue;
}
}
}
|