Tweaks
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Particles.ParticleSimulation
|
||||
private float _health = 1f;
|
||||
|
||||
public Vector2 Position = new Vector2();
|
||||
public bool ScreenWrappedLast = true;
|
||||
public bool WasTeleportedLast = true;
|
||||
public Vector2 Velocity = new Vector2();
|
||||
|
||||
public Particle(int id, ParticleType type)
|
||||
@@ -33,5 +33,10 @@ namespace Particles.ParticleSimulation
|
||||
{
|
||||
AverageSpeed = 0.99f * AverageSpeed + 0.01f * speed;
|
||||
}
|
||||
|
||||
public void ResetAverageSpeed()
|
||||
{
|
||||
AverageSpeed = 1f;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user