mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
12 lines
345 B
C#
12 lines
345 B
C#
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;
|
|
}
|
|
}
|
|
} |