Moai SDK
2.0
|
Function List | |
initAttractor | |
initBasin | |
initLinear | |
initRadial | |
setType | |
Function List inherited from MOAINode | |
clearAttrLink | |
clearNodeLink | |
forceUpdate | |
getAttr | |
getAttrLink | |
getNodeState | |
moveAttr | |
scheduleUpdate | |
seekAttr | |
setAttrLink | |
setAttr | |
setNodeLink | |
Function List inherited from MOAIInstanceEventSource | |
getListener | |
setListener | |
Additional Inherited Members | |
Function List inherited from MOAITransform | |
addLoc | |
addPiv | |
addRot | |
addScl | |
getLoc | |
getPiv | |
getRot | |
getScl | |
move | |
moveLoc | |
movePiv | |
moveRot | |
moveScl | |
seek | |
seekLoc | |
seekPiv | |
seekRot | |
seekScl | |
setLoc | |
setPiv | |
setRot | |
setScl | |
setShearByX | |
setShearByY | |
setShearByZ | |
Function List inherited from MOAITransformBase | |
getWorldDir | |
getWorldLoc | |
getWorldRot | |
getWorldScl | |
getWorldXAxis | |
getWorldYAxis | |
getWorldZAxis | |
getWorldXNormal | |
getWorldYNormal | |
getWorldZNormal | |
modelToWorld | |
setParent | |
worldToModel | |
|
|
Greater force is exerted on particles as they approach attractor.
function initAttractor ( MOAIParticleForce self, number radius [, number magnitude ] )
MOAIParticleForce | self |
number | radius Size of the attractor. |
number | magnitude Optional. Strength of the attractor. |
|
Greater force is exerted on particles as they leave attractor.
function initBasin ( MOAIParticleForce self, number radius [, number magnitude ] )
MOAIParticleForce | self |
number | radius Size of the attractor. |
number | magnitude Optional. Strength of the attractor. |
|
A constant linear force will be applied to the particles.
function initLinear ( MOAIParticleForce self, number x [, number y ] )
MOAIParticleForce | self |
number | x |
number | y Optional. |
|
A constant radial force will be applied to the particles.
function initRadial ( MOAIParticleForce self, number magnitude )
MOAIParticleForce | self |
number | magnitude |
|
Set the type of force. FORCE will factor in the particle's mass. GRAVITY will ignore the particle's mass. OFFSET will ignore both mass and damping.
function setType ( MOAIParticleForce self, number type )
MOAIParticleForce | self |
number | type One of MOAIParticleForce.FORCE, MOAIParticleForce.GRAVITY, MOAIParticleForce.OFFSET |