Пример #1
0
 public Particle(Vector2 _Pos, double _LifeSpan, Vector2 _Velocity, float _InitialSpeed, AnimatedTexture _Texture, float _Friction = 0, float _Scale = 1, float _Rotation = 0) : base(_Pos, _Scale, _Rotation)
 {
     mVelocity          = _Velocity;
     mLifeSpanInitial   = _LifeSpan;
     mLifeSpanRemaining = mLifeSpanInitial;
     mMovementSpeed     = _InitialSpeed;
     mPosition          = _Pos;
     mFriction          = _Friction;
     mTexture           = _Texture;
     mTexture.SetNewOwner(this);
 }