public Emitter(int capacity, TimeSpan term, Profile profile) { if (profile == null) { throw new ArgumentNullException(nameof(profile)); } _term = (float)term.TotalSeconds; Buffer = new ParticleBuffer(capacity); Offset = new Vector(); Profile = profile; Modifiers = new IModifier[0]; ModifierExecutionStrategy = ModifierExecutionStrategy.Serial; Parameters = new ReleaseParameters(); }
public ParticleIterator(ParticleBuffer buffer) { _buffer = buffer; }