I wrote the basic code for a very simple rocket simulation in Processing. In the program, a rocket moves through zero gravity. The rocket contains two types of components: fuel tanks (green) and thrusters(red). The rocket can actually be built (only from inside the code and not by the user for now) and its performance depends on its components and their positions and rotations. The rocket’s fuel decreases as it’s thrusters run and so does its mass and center of mass.