Moai SDK
1.5 revision 1 (MoaiEdition)
|
Inherits MOAILuaObject.
Function List | |
clearForces | |
pushForce | |
setDamping | |
setInitScript | |
setMass | |
setNext | |
setPlugin | |
setRenderScript | |
setTerm |
Removes all particle forces from the state.
function clearForces ( MOAIParticleState self )
self | ( MOAIParticleState ) |
Adds a force to the state.
function pushForce ( MOAIParticleState self, MOAIParticleForce force )
self | ( MOAIParticleState ) |
force | ( MOAIParticleForce ) |
Sets damping for particle physics model.
function setDamping ( MOAIParticleState self, number damping )
self | ( MOAIParticleState ) |
damping | ( number ) |
Sets the particle script to use for initializing new particles.
function setInitScript ( MOAIParticleState self [, MOAIParticleScript script ] )
self | ( MOAIParticleState ) |
script | ( MOAIParticleScript ) Optional. |
Sets range of masses (chosen randomly) for particles initialized by the state.
function setMass ( MOAIParticleState self, number minMass [, number maxMass ] )
self | ( MOAIParticleState ) |
minMass | ( number ) |
maxMass | ( number ) Optional. Default value is minMass. |
Sets the next state (if any).
function setNext ( MOAIParticleState self [, MOAIParticleState next ] )
self | ( MOAIParticleState ) |
next | ( MOAIParticleState ) Optional. Default value is nil. |
Sets the particle plugin to use for initializing and updating particles.
function setPlugin ( MOAIParticleState self [, MOAIParticlePlugin plugin ] )
self | ( MOAIParticleState ) |
plugin | ( MOAIParticlePlugin ) Optional. |
Sets the particle script to use for rendering particles.
function setRenderScript ( MOAIParticleState self [, MOAIParticleScript script ] )
self | ( MOAIParticleState ) |
script | ( MOAIParticleScript ) Optional. |
Sets range of terms (chosen randomly) for particles initialized by the state.
function setTerm ( MOAIParticleState self, number minTerm [, number maxTerm ] )
self | ( MOAIParticleState ) |
minTerm | ( number ) |
maxTerm | ( number ) Optional. Default value is minTerm. |