@m4xdev/particle
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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}}

/@m4xdev/particle/

    Package Sidebar

    Install

    npm i @m4xdev/particle

    Weekly Downloads

    0

    Version

    0.0.4

    License

    ISC

    Unpacked Size

    7.75 kB

    Total Files

    6

    Last publish

    Collaborators

    • maxdevos49