Better HN
topnewbestaskshowjobs
Log inSign up

bourgoisloic

49 karma · joined Jun 22, 2019 (7y ago) · 6 submissions

loicbourgois.com
Submissions

1.

Show HN: Event Driven Level Design(loicbourgois.com ↗)

8 points · by bourgoisloic · 6y ago · discuss

2.

Ask HN: 2020, a broken year. A golden year?

2 points · by bourgoisloic · 6y ago · 1 comment

comment 7y ago · link · parent

Thank you. There is not, but on the readme you can find a few links to learn more[1].

I don't have solid metrics, but using only JS for a previous attempt, I couldn't have 8 points running smoothly [2]. Now it works with 500[3].

I'm not sure whether it's because I have a better understanding of the problems now or just because Rust/wasm is way faster, but what is sure is that Rust makes it easier to write performant code, even if it's harder to learn at first.

[1] https://github.com/loicbourgois/gravitle#learn-more

[2] https://loicbourgois.github.io/treeminor/demo/heart

[3] https://loicbourgois.github.io/gravitle/playground.html?test...

comment 7y ago · link · parent

The springs are not damped yet, but for the main example, drag is enabled[1]. This continuously slows down the particles.

Drag is computed[2] for all the particles using something similar to the Drag equation[3].

Also, like electricslpnsld said, having a small enough time step helps.

[1] https://github.com/loicbourgois/gravitle/blob/master/fronten...

[2] https://github.com/loicbourgois/gravitle/blob/master/src/par...

[3] https://en.wikipedia.org/wiki/Drag_equation

comment 7y ago · link · parent

Thank you for the feedback. I will look into this. Maybe the issue is only related to WebGL rendering.

6.

Show HN: Gravitle – 2D soft-body engine built with Rust for the web(loicbourgois.github.io ↗)

95 points · by bourgoisloic · 7y ago · 27 comments