IParticleUpdater
Description
- Derived from
- Extended by
-
ParticleUpdater abstract
Base interface for classes that update per-particle data.
Concrete implementations typically add a specific behaviour to particles, for example linear movement / rotation, damping or gravity.
Public / Methods
InitializeParticles
Initializes the given particles.
This method is called by ParticleBuffer.CreateEnd to initialize particle data, if necessary. It should thus finish quickly. Expensive calculations should be performed by UpdateParticles, as that method is called by a background thread.
SetVertexArrays
Sets the vertex data containers that will be read from and/or written to by the updater.
This method will create required vertex data arrays with VertexArrays.CreateVertexArray, if they are missing.