physom-particles
v0.1.0
Published
A simple particle lib for `physom`.
Downloads
4
Readme
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);
});