Moai SDK
1.5 revision 1 (MoaiEdition)
|
Function List | |
initAttractor | |
initBasin | |
initLinear | |
initRadial | |
setType |
Greater force is exerted on particles as they approach attractor.
function initAttractor ( MOAIParticleForce self, number radius [, number magnitude ] )
self | ( MOAIParticleForce ) |
radius | ( number ) Size of the attractor. |
magnitude | ( number ) Optional. Strength of the attractor. |
Greater force is exerted on particles as they leave attractor.
function initBasin ( MOAIParticleForce self, number radius [, number magnitude ] )
self | ( MOAIParticleForce ) |
radius | ( number ) Size of the attractor. |
magnitude | ( number ) Optional. Strength of the attractor. |
A constant linear force will be applied to the particles.
function initLinear ( MOAIParticleForce self, number x [, number y ] )
self | ( MOAIParticleForce ) |
x | ( number ) |
y | ( number ) Optional. |
A constant radial force will be applied to the particles.
function initRadial ( MOAIParticleForce self, number magnitude )
self | ( MOAIParticleForce ) |
magnitude | ( number ) |
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 )
self | ( MOAIParticleForce ) |
type | ( number ) One of MOAIParticleForce.FORCE, MOAIParticleForce.GRAVITY, MOAIParticleForce.OFFSET |