![]() |
The Stroop Test Game
Ian Parberry's "Introduction to Game Physics"
|
A particle engine for bubbles. More...
#include <BubbleEngine.h>
Public Member Functions | |
| CBubbleEngine (CVectorField *, LSpriteRenderer *) | |
| Constructor. More... | |
| void | step () |
| Animation step. More... | |
Private Attributes | |
| CVectorField * | m_pVectorField = nullptr |
| Pointer to a vector field. | |
A particle engine for bubbles.
A particle engine with a vector field that is used to alter the speed of all particles. It is intended to be used for bubbles that are blown about by passing objects.
| CBubbleEngine::CBubbleEngine | ( | CVectorField * | pvf, |
| LSpriteRenderer * | pr | ||
| ) |
Constructor.
Create a Bubble engine with its own vector field and PRNG.
| pvf | Pointer to a vector field. |
| pr | Pointer to a sprite renderer. |
| void CBubbleEngine::step | ( | ) |
Animation step.
Overrides CParticleEngine::step, adding deflection of particle velocity by a vector field.