Skip to content

Instantly share code, notes, and snippets.

View nathanielarking's full-sized avatar

Nathaniel King nathanielarking

View GitHub Profile
@nathanielarking
nathanielarking / Entity
Created May 17, 2020 05:55
Simply gravity simulation
class Entity{
boolean spawned = false;
boolean freeze = false;
PVector pos, vel, acc;
float mass, size;
int[] colour = new int[3];
Entity(){
@nathanielarking
nathanielarking / Entity
Created May 17, 2020 03:48
Simple fluid simulation in processing
class Entity{
boolean spawned = false;
boolean freeze = false;
PVector pos, vel, acc;
float mass, size;
int[] colour = new int[3];
Entity(){