wavelength 1.0.0
Loading...
Searching...
No Matches
substepparticles.h
Go to the documentation of this file.
1#pragma once
2
3#include "math/vector3.h"
5
13public:
22 SubstepParticles(int nSteps, RndParticleSys *pSys);
23
30 void Reset();
31
39 void SetSteps(int nSteps);
40
49 void Update(float fFrame, float fTime);
50
53 return mSys;
54 }
55
57 void SetSys(RndParticleSys *pSys) {
58 mSys = pSys;
59 }
60
61private:
62 RndParticleSys *mSys;
63 float mLastTime;
64 Vector3 mLastPos;
65 int mSteps;
66 float mInvSteps;
67};
Emitter that spawns, moves, and fades a population of particles.
Definition rndparticlesys.h:69
void SetSteps(int nSteps)
Set the number of steps of an update.
void SetSys(RndParticleSys *pSys)
Definition substepparticles.h:57
void Update(float fFrame, float fTime)
Pose the particle system and emit its particles in steps since the last update.
RndParticleSys * GetSys() const
Definition substepparticles.h:52
SubstepParticles(int nSteps, RndParticleSys *pSys)
Construct the steps of a particle system.
void Reset()
Forget the last update, so the next one only records the position.
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14