Files
MonoGame.Extended/Source/MonoGame.Extended.Particles/Modifiers/Interpolators/RotationInterpolator.cs
T

10 lines
317 B
C#

namespace MonoGame.Extended.Particles.Modifiers.Interpolators
{
public class RotationInterpolator : Interpolator<float>
{
public override unsafe void Update(float amount, Particle* particle)
{
particle->Rotation = (EndValue - StartValue) * amount + StartValue;
}
}
}