Guide to Game Development/Theory/Game logic/Creating a particle class

Note: the following code uses a Vector3 class.

This is an outline for what a particle class could look like written in C++:

Particle.h:

Particle.cpp: