Skip to content

slyedoc/bevy_ten_minute_physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bevy Ten Minutes Physics

These are examples of how to use the Bevy engine to create a simple physics simulations based on Matthias Muller's amazing Ten Minute Physics tutorials, go check them out.

Why?

I have playing around with creating a bevy native physics engine for a while, and while I have learned alot, they haven't been usable. My lastest issue been has implementing a global solver for contraints. Even with simple contrains it feels like you need a PHD (which I don't have) and so many advance optimazations to be performant, (sparse matrix representations for example) that the KISS principle is no where in sight. That's why I am hopeful for XPBD, it seems to be a much simpler approach to solving the same problem.

Tutorials

These are not polished bevy or rust examples, I have done just enough to recreate Muller's examples. I do plan on writing a xpbd physics plugin for bevy, this is not that plugin.

1. 2d physics

2. 3d physics

3. 2d ball collision

4. Pinball

5. Beads

6. Pendulum

7. 3d vector math

No code for this one.

8. User Interaction

9. XPBD

No code for this one.

10. Softbodies

11. Spatial Hashing

12. Speedup Softbodies

Video

14. Cloth

- [ ] Edges from plane still need work. - [ ] Grab

15. Self Collision

Credits

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages