API Docs for: v2.1.0
Show:

CGSGParticle Class

Module: ParticleSystem
Parent Module: Animation

Methods

init

() public

Initialize attributes of this particle

initPosition

(
  • x
  • y
)
public

Parameters:

initSpeedThreshold

(
  • st
)
public

Parameters:

initVelocity

(
  • velocity
)
public

Parameters:

updatePosition

(
  • deltaTime
  • acceleration
)
public

update the particle position with an Euler integration TODO : externalize the process to choose between RK4 and Euler integration

Parameters:

Returns:

:

Properties

userData

A void* property to let the developer store whatever he needs (new properties, ...)

Default: null