jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
759 stars 44 forks source link

3D particles support #69

Closed djlastnight closed 2 years ago

djlastnight commented 2 years ago

Hi there, it's me again. I was wondering is the a way to use particles in 3d space. Example: the particles goes around a cylinder. Thanks in advance.

jnsmalm commented 2 years ago

You create a bunch of Sprite3D objects and use as particles or if you want 3D objects, you can use instancing.

let mesh = new Mesh3D(...)
let instance = mesh.createInstance()
djlastnight commented 2 years ago

got it, thanks :)