ElementSpawnParameters
Parameters used to configure the initial state of a particle when it’s spawned in the simulation.
Declaration
struct ElementSpawnParametersOverview
The values specified become initial values in the Initialization stage, which can read or overwrite the values.
Usage
let params = ElementSpawnParameters(
position: SIMD3<Float>(0, 1, 0),
velocity: SIMD3<Float>(0, -1, 0),
size: SIMD2<Float>(0.02, 0.02),
color: SIMD4<Float>(1, 0.5, 0, 1),
lifetime: 2.0
)