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