Class: ParticleSystem

gEngine.ParticleSystem()

new ParticleSystem()

Default Constructor Particle System support
Source:

Methods

collideWithRigidSet(objSet, pSet)

Handles the collisions between a GameObjectSet and a ParticleGameObjectSet
Parameters:
Name Type Description
objSet GameObjectSet The GameObjectSet having its rigid shapes being checked for collisions
pSet ParticleGameObjectSet The ParticleGameObjectSet having its particles checked for collisions
Source:

getSystemtAcceleration() → {Array.<Float>}

Return the Acceleration for the particle system
Source:
Returns:
Current Acceleration [X, Y]
Type
Array.<Float>

processObjSet(obj, pSet)

Processes the collisions between a GameObject and a ParticleObjectSet
Parameters:
Name Type Description
obj GameObject The object being checked for collision
pSet ParticleObjectSet The Particle Set being checked for collision
Source:

resolveCirclePos(circShape, particle) → {Boolean}

Resolve collision between a particle and a RigidCircle
Parameters:
Name Type Description
circShape RigidCircle The Rigid Circle being checked for collision
particle Particle The particle being checked for collision
Source:
Returns:
Whether there was a collision or not
Type
Boolean

resolveRectPos(rectShape, xf) → {Boolean}

Resolve collision between a particle and a RigidRectangle
Parameters:
Name Type Description
rectShape RigidRectangle The Rigid Rectangle being checked for collision
xf Transform The transform of the particle to check for collision
Source:
Returns:
Whether there was a collision or not
Type
Boolean

setSystemtAcceleration(g)

Set the Acceleration for the particle system
Parameters:
Name Type Description
g Array.<Float> new Acceleration [X, Y]
Source:

update(pSet)

Update the Particle Set
Parameters:
Name Type Description
pSet ParticleGameObjectSet The particleSet to be update
Source: