Пример #1
0
 public void Initialize(double initTimeMs,
                        Vector2 initPosMeters,
                        Random rng,
                        ParticleParams pm,
                        float metersPerDip = 1.0f)
 {
     InitializeParticle(initTimeMs, initPosMeters, rng, pm, metersPerDip);
 }
Пример #2
0
        protected virtual void InitializeParticle(double initTimeMs,
                                                  Vector2 initPosMeters,
                                                  Random rng,
                                                  ParticleParams pm,
                                                  float metersPerDip)
        {
            _position     = initPosMeters;
            _initTime     = _lastTime = _currTime = initTimeMs / 1000.0f;
            _rng          = rng;
            _metersPerDip = metersPerDip;

            _canDispose = false;
            _requestedRenderRadiusDips = 1.0f;
            _params = pm;

            _isInitialized = true;
        }