Method | Description | |
---|---|---|
initialize ( |
||
update ( |
updates the particle. Returns true when the particle is no longer alive
|
Method | Description | |
---|---|---|
calculateCollisionResponseVelocity ( float friction, float elasticity, Vector2 &minimumTranslationVector ) : void |
given the relative velocity between the two objects and the MTV this method modifies the relativeVelocity to make it a collision response.
|
public initialize ( |
||
emitterConfig | ||
spawnPosition | Vector2 | |
return | void |
public update ( |
||
emitterConfig | Emitter config. | |
collisionConfig | ParticleCollisionConfig | |
rootPosition | Vector2 | |
return | bool |