Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f16cbcc

Browse filesBrowse files
authored
N38: Add Particular section and gif (rust-gamedev#1167)
1 parent 8cda405 commit f16cbcc
Copy full SHA for f16cbcc

File tree

2 files changed

+32
-0
lines changed
Filter options

2 files changed

+32
-0
lines changed

‎content/news/038/index.md

Copy file name to clipboardExpand all lines: content/news/038/index.md
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,38 @@ The above screen shows an example of controlling a custom made audio source
272272
[bevy_oddio_02]: https://github.com/harudagondi/bevy_oddio/releases/tag/v0.2.0
273273
[bevy_fundsp_example]: https://github.com/harudagondi/bevy_fundsp/blob/ca08963820c83dd723784db6c6f87df8eadd60e0/examples/oddio/controlled.rs#L40-L52
274274

275+
### [Particular]
276+
277+
![showcase using the demo](particular.gif)
278+
_Showcase using the [demo]_
279+
280+
[Particular] by [@Canleskis] is a library allowing for simulations of
281+
N-body gravitational interaction of particles. It aims to be simple
282+
to integrate in existing game and physics engines, such as [Bevy] or [Rapier].
283+
See the [demo source code] for the example of an integration (less than 50
284+
actual lines of code!).
285+
The [demo] is available on the browser (Chromium-based recommended)
286+
with various scenes you can interact with.
287+
288+
Particular can be used with [rayon] to leverage multithreading on the
289+
CPU (`parallel` feature). Although the current algorithm performs well enough
290+
for most use cases, with a single frame taking around 5 ms with 5000 particles
291+
on an I9 9900K, future updates will introduce other implementations to allow for
292+
faster computation of the forces (example: [Barnes-Hut]).
293+
294+
You can find more about Particular with
295+
[this video](https://www.youtube.com/watch?v=oFrq9ckHoN8&) from
296+
[@ChristopherBiscardi](https://github.com/ChristopherBiscardi), or
297+
[this post](https://www.reddit.com/r/rust/comments/x7uhoq/media_particular_a_simple_library_for_nbody/)
298+
on Reddit.
299+
300+
[Particular]: https://github.com/Canleskis/particular
301+
[demo]: https://canleskis.github.io/bevy-particular-demo/
302+
[demo source code]: https://github.com/Canleskis/bevy-particular-demo/blob/main/src/nbody.rs
303+
[@Canleskis]: https://github.com/Canleskis
304+
[rayon]: https://github.com/rayon-rs/rayon
305+
[Barnes-Hut]: https://en.wikipedia.org/wiki/Barnes%E2%80%93Hut_simulation
306+
275307
## Popular Workgroup Issues in Github
276308

277309
<!-- Up to 10 links to interesting issues -->

‎content/news/038/particular.gif

Copy file name to clipboard
2.3 MB
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.