Skip to content

Instantly share code, notes, and snippets.

View RyoKosaka's full-sized avatar

Ryo Kosaka RyoKosaka

View GitHub Profile
@tado
tado / ParticleVec3.cpp
Last active June 22, 2020 18:56
3D Particle for openFrameworks
#include "ParticleVec3.h"
ParticleVec3::ParticleVec3(){
radius = 5.0;
friction = 0.01;
mass = 1.0;
position.set(ofGetWidth()/2.0, ofGetHeight()/2.0, 0);
velocity.set(0, 0, 0);
acceleration.set(0, 0, 0);
minx = 0;