Moai SDK  1.5 revision 1 (MoaiEdition)
MOAIParticleState Class Reference

Inherits MOAILuaObject.

List of all members.

Function List

  clearForces
  pushForce
  setDamping
  setInitScript
  setMass
  setNext
  setPlugin
  setRenderScript
  setTerm

Function Documentation

Removes all particle forces from the state.


function clearForces ( MOAIParticleState self )
Parameters:
self ( MOAIParticleState )
Returns:
nil

Adds a force to the state.


function pushForce ( MOAIParticleState self, MOAIParticleForce force )
Parameters:
self ( MOAIParticleState )
force ( MOAIParticleForce )
Returns:
nil

Sets damping for particle physics model.


function setDamping ( MOAIParticleState self, number damping )
Parameters:
self ( MOAIParticleState )
damping ( number )
Returns:
nil

Sets the particle script to use for initializing new particles.


function setInitScript ( MOAIParticleState self [, MOAIParticleScript script ] )
Parameters:
self ( MOAIParticleState )
script ( MOAIParticleScript ) Optional.
Returns:
nil

Sets range of masses (chosen randomly) for particles initialized by the state.


function setMass ( MOAIParticleState self, number minMass [, number maxMass ] )
Parameters:
self ( MOAIParticleState )
minMass ( number )
maxMass ( number ) Optional. Default value is minMass.
Returns:
nil

Sets the next state (if any).


function setNext ( MOAIParticleState self [, MOAIParticleState next ] )
Parameters:
self ( MOAIParticleState )
next ( MOAIParticleState ) Optional. Default value is nil.
Returns:
nil

Sets the particle plugin to use for initializing and updating particles.


function setPlugin ( MOAIParticleState self [, MOAIParticlePlugin plugin ] )
Parameters:
self ( MOAIParticleState )
plugin ( MOAIParticlePlugin ) Optional.
Returns:
nil

Sets the particle script to use for rendering particles.


function setRenderScript ( MOAIParticleState self [, MOAIParticleScript script ] )
Parameters:
self ( MOAIParticleState )
script ( MOAIParticleScript ) Optional.
Returns:
nil

Sets range of terms (chosen randomly) for particles initialized by the state.


function setTerm ( MOAIParticleState self, number minTerm [, number maxTerm ] )
Parameters:
self ( MOAIParticleState )
minTerm ( number )
maxTerm ( number ) Optional. Default value is minTerm.
Returns:
nil