mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
13 lines
349 B
Plaintext
13 lines
349 B
Plaintext
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;
|
|
}
|
|
}
|
|
}
|