0.1.0 • Published 2 years ago

physom-particles v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

physom-particles

A simple particle lib for physom.

Example

// import PP from 'physom-particles';
// const PP = require('physom-particles');

const particleManager = new PP.ParticleManager();

rootNode.on('click', (event) => {

    const particleGroup = particleManager.createParticleGroup();

    particleGroup.offset.set(
        event.data.x,
        event.data.y,
    );

    rootNode.appendChild(particleGroup);

});

Links