Constructs a Body initalizer instance.
The content for the particle body, can be a color or an object (mesh)
Optionalw: number
The width of the particle body
Optionalh: number
The height of the particle body
OptionalhOptionalwSets the particle's initial body.
the particle to initialize the property on
AbstractresetStaticfromCreates a Body initializer from JSON.
The JSON to construct the instance from.
StaticrequiresDetermines if the initializer requires a WebGL API to be provided to its constructor.
Sets the body property on initialized particles.