@m4xdev/particle
v0.0.4
Published
A simple 3D particle library.
Downloads
12
Maintainers
Readme
Particle 3D library
A simple light weight particle library. All utilities are immutable and return a new particle object literal.
Example
const stationaryParticle = Particle3D.create();
const gravityForce = Vector3.create(0,-1);
const movedParticle = Particle3D.applyForce(stationaryParticle, gravityForce);
// movedParticle === {position: {x:0, y:-1, z:0}, velocity: {x:0, y:-0, z:0}}