Optionalparameters: DonutEmitterParametersArc around z, in radians, that particles start in; 2π for the whole torus.
Radius of the tube.
State the DonutEmitter.speed generator keeps.
How the start point moves along the arc, see EmitterMode.
Radius of the torus, from its centre to the centre line of its tube.
Speed of the arc sweep in arcs per second, for the Loop and PingPong modes; sampled over
the system's cycle.
Snaps the start point along the arc to multiples of this fraction (Unity's Spread); 0 for none.
How far in from the tube's surface particles may start, as a fraction of its radius: 0 on the surface, 1 anywhere down to the centre line, evenly over the cross-section; clamped to [0, 1].
OptionaltransformOptional local transform of the shape inside its particle system, applied by the shape itself at the end of initialize.
Always 'donut'.
A copy with the same settings.
Starts p in the tube, heading out from the tube's centre line at its start speed.
Forgets the state the shape built up while emitting (the arc sweep position of
Loop/PingPong shapes, generator memory), so a restarted system emits from the
start of the arc again. Called by the particle system's restart().
The shape's JSON.
Advances the arc sweep by delta seconds in the Loop and PingPong modes.
StaticfromReads DonutEmitter.toJSON output; a field the JSON leaves out takes its default.
Emits from a torus around z (Unity's Donut shape): particles start in its tube, or on the tube's surface, and head out from the tube's centre line.