Class: Particle

gEngine.Particle

new Particle()

Default Constructor Particle System support
Source:

Methods

(static) getSystemtAcceleration() → {Array.<Float>}

Return Acceleration
Source:
Returns:
current Acceleration [X, Y]
Type
Array.<Float>

(static) processObjSet(obj, pSet) → {undefined}

Rigid Shape interactions: a game object and a set of particle game objects
Parameters:
Name Type Description
obj GameObject
pSet ParticleObjectSet
Source:
Returns:
Type
undefined

(static) processSetSet(objSet, pSet) → {void}

Rigid Shape interactions: game object set and a set of particle game objects
Parameters:
Name Type Description
objSet GameObjectSet
pSet ParticleObjectSet
Source:
Returns:
Type
void

(static) resolveCirclePos(circShape, particle) → {Boolean}

Parameters:
Name Type Description
circShape type
particle type
Source:
Returns:
Type
Boolean

(static) resolveRectPos(rectShape, particle) → {Boolean}

Parameters:
Name Type Description
rectShape type
particle type
Source:
Returns:
Type
Boolean

(static) setSystemtAcceleration(g) → {void}

Set Acceleration
Parameters:
Name Type Description
g Array.<Float> new Acceleration [X, Y]
Source:
Returns:
Type
void