示例#1
0
 public Particle(Vector2 pos, Vector2 vel, float rot, float aMom, int ttl, ParticleBase particleBase)
 {
     _pos          = pos;
     _vel          = vel;
     _rotation     = rot;
     _aMomentum    = aMom;
     _ttl          = ttl;
     _particleBase = particleBase;
 }
示例#2
0
 public Orbital(Vector2 pos, float rot, float aMom, ParticleBase particleBase, int rotRate)
 {
     _pos          = pos;
     _rotation     = rot;
     _aMomentum    = aMom;
     _particleBase = particleBase;
     _rotRate      = rotRate;
     _accelPoint   = new Vector2(1500, 1500);
     _accel        = (_accelPoint - _pos) / _rotRate / _rotRate;
     _vel          = (_accelPoint - _pos).PerpendicularCounterClockwise() / _rotRate;
 }