API Docs for: v2.1.0
Show:

CGSGParticleSystem Class

Extends CGSGNode
Module: ParticleSystem
Parent Module: Animation

A particle System object.

Methods

addAttractor

(
  • position
  • strength
  • distance
)
Object public

Parameters:

Returns:

addEmitter

(
  • node
  • region
  • nbParticlesMax
  • velocity
  • angle
  • speed
  • speedThreshold
  • outflow
)
CGSGParticleEmitter public

Create a new emitter and return it

Parameters:

addForce

(
  • vector
)
public

Add a force to all emitters

Parameters:

addRepulsor

(
  • position
  • strength
  • distance
)
Object public

Parameters:

Returns:

pickNode

(
  • mousePosition
  • absoluteScale
  • ghostContext
  • recursively
  • condition
)
protected

override the CGSGNode 'pickNode' method to return null due to performance

Parameters:

Returns:

:

removeAttractor

(
  • attractor
)
public

Parameters:

removeEmitter

(
  • emitter
)
public

Remove the emitter passed in parameter

Parameters:

removeRepulsor

(
  • repulsor
)
public

Parameters:

Properties

attractors

Array

list of attractors

emitters

Array

list of emitters

repulsors

Array

list of repulsors