Skip to content
Andrew Gleeson edited this page Jan 5, 2022 · 2 revisions

Index

Basic Methods

Properties


Basic Methods

exists()

Returns: Boolean

Returns if emitter currently exists.

clear()

Returns: N/A

Resets emitter to its default state (removing streams/regions)

destroy()

Returns: N/A

Destroys current emitter, and all associated particles.

Properties

burst( type, num)

Returns: self

Create a one-off 'burst' of particles on this emitter.

region( x1, y1, x2, y2, shape, distribution)

Returns: self

Define the position/shape/distrubution of the emitter.

shape accepts the following constants:

  • ps_shape_rectangle
  • ps_shape_ellipse
  • ps_shape_diamond
  • ps_shape_line

distribution accepts the following constants:

  • ps_distr_linear
  • ps_distr_gaussian
  • ps_distr_invgaussian

position( x, y)

Returns: self

Set the emitter region to be a singular point.

stream( type, num)

Returns: self

Set up a 'stream' where particles are created every step on this emitter.

Clone this wiki locally