BabylonJS / Babylon.js

Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
http://www.babylonjs.com
Apache License 2.0
22.97k stars 3.4k forks source link

User-defined flow maps for CPU particle direction #14744

Open PatrickRyanMS opened 7 months ago

PatrickRyanMS commented 7 months ago

We currently have three ways to determine motion path for particles in our standard particle system without using a custom update function:

With these options, we can make particles take many types of linear paths, especially when you add in the gravity parameter. However, if you want particles to flow around certain objects or in a particular path, like in a circle, we need a custom update function. One thing we can do to get a bit closer would be to enable a feature where users can create their own flow map to have particles take their directions from.

Here are some considerations:

Much of this was just off the top of the head design, so the bullets are a little out of order. But hopefully it helps form the basis of what the feature could be. Ping with questions!

github-actions[bot] commented 5 months ago

This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale".

github-actions[bot] commented 3 months ago

This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale".