mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
moved the particle system and the entity component system into their own nuget packages
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace MonoGame.Extended.Particles.Modifiers.Interpolators
|
||||
{
|
||||
public class ScaleInterpolator : IInterpolator
|
||||
{
|
||||
private Vector2 _delta;
|
||||
public Vector2 StartValue { get; set; }
|
||||
|
||||
public Vector2 EndValue
|
||||
{
|
||||
get { return _delta + StartValue; }
|
||||
set { _delta = value - StartValue; }
|
||||
}
|
||||
|
||||
public unsafe void Update(float amount, Particle* particle)
|
||||
{
|
||||
particle->Scale = _delta*amount + StartValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user