Méthode | Description | |
---|---|---|
initialize ( |
||
update ( |
updates the particle. Returns true when the particle is no longer alive
|
Méthode | 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 | |
Résultat | void |
public update ( |
||
emitterConfig | Emitter config. | |
collisionConfig | ParticleCollisionConfig | |
rootPosition | Vector2 | |
Résultat | bool |