Spawn Shape creates a shape to emit particles from. By default it can emit from shapes formed by a circle, donut, rectangle, and lines between points.
Parameters
torus (with an alias of “circle”)
rect
polygonalChain
Examples::
Example Configurations: – other configuration excluded for brevity
{
type: 'spawnShape',
config: {
type: 'torus',
data: {
radius: 42,
innerRadius: 40,
affectRotation: true
}
}
}
{
type: 'spawnShape',
config: {
type: 'rect',
data: { x: 0, y: 0, w: 100, h: 10 }
}
},
{
type: 'spawnShape',
config: {
type: 'polygonalChain',
data: [
[
{x: 0, y: 0},
{x: 200, y: 0},
{x: 300, y: 100},
{x: 260, y: 140},
{x: -40, y: 140},
{x: -80, y: 100},
{x: 0, y: 0}
],
[
{x: -80, y: 100},
{x: 300, y: 100}
]
]
}
}