/// <summary> /// This constructor is only for serialisation. /// </summary> public PhysicalUpdater() { _particleAge = new ExpectedValue(); _acceleration = new SimpleCurve(); _accelerationInputScale = 0; _rotationSpeed = new SimpleCurve(); _rotationSpeedInputScale = 0; _scale = new SimpleCurve(); _scaleInputScale = 0; _alpha = new SimpleCurve(); _alphaInputScale = 0; _drag = 0; _areParticlesImmortal = false; }
/// <summary> /// This constructor only is for serialisation. /// </summary> public SprayEmitter() { TextureNames = new[] { (CanonicalString)"dummytexture" }; GobTypeNames = new[] { (CanonicalString)"dummygob" }; _radius = 15; _sprayAngle = MathHelper.PiOver4; _facingType = FacingType.Random; _initialVelocity = new SimpleCurve(); _emissionFrequency = 10; _numberToCreate = -1; _nextBirth = new TimeSpan(-1); }