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