Reset

This function resets a particle emitter back to its starting values.

Syntax

Remarks

If you are just trying to start and stop a particle emitter, use the functions Play and Pause.

Example

--Create a window
window = Window:Create()
context = Context:Create(window)
world = World:Create()
camera = Camera:Create()
camera:Move(0,0,-3)

--Create an emitter
emitter = Emitter:Create(100)

while true do

if window:Closed() or window:KeyHit(Key.Escape) then return false end

Time:Update()
world:Update()
world:Render()

--Press space to reset emitter
if window:KeyHit(Key.Space) then emitter:Reset() end

context:Sync()
end