I fixed the problem with the energy 😅

I also ported the code to use f64 everywhere instead of f32 for physics.

2^14 spheres this time ✨

I also made the repository public but it will not be published as a library. It is just my educational progress with my thesis:
https://codeberg.org/mo8it/master-thesis

#Bevy #XPBD #egui #RustLang #Rust

master-thesis

master-thesis

Codeberg.org

Progress with my physics from scratch in #Bevy 😇

I was asked to simulate one sphere and plot its energy to validate my physics implementation.
But since I use #Rust, I thought why not simulate 10000 spheres instead? 😂

I don't understand the energy spike at the beginning, but at least the energy is stable later.

#XPBD #RustLang #egui

Part 4 ✨

#Bevy #XPBD

Part 3 ✨

#Bevy #XPBD

My output for part 2 ✨

#Bevy #XPBD

I am following this fantastic #XPBD tutorial in #Bevy by @johanhelsing and I highly recommend it after learning some of the basics of Bevy 😍

https://johanhelsing.studio/posts/bevy-xpbd/

The tutorial isn't complete yet, but the first 6 parts are already a lot of material!

The attached GIF is the result of the first part ✨

@johanhelsing thank you for this treasure 🥰

PS: I know there is the physics library bevy_xpbd, but I want to implement XPBD from scratch for learning :D

#RustLang #Rust

Tutorial: Making a physics engine with Bevy

In a sudden and ambitious outburst of not-invented-here syndrome combined with hype-train, I decided there weren't enough physics engines out there and it would be a good idea to write one myself using all the latest buzzwords. In this tutorial series, I'll explain step-by-step how to build an extended position-based dynamics (XPBD) rigid-body physics engine using entity component system (ECS) architecture in rust.

Johan Helsing Studio

Been going on a tear with #pico8. Here's an XPBD library with 4 little demo scenes.

https://www.lexaloffle.com/bbs/?tid=54905 #xpbd

Introducing eXtended Position Based Dynamics (XPBD) library

square go squashy-squish

A little thing I'm playing with in
#pico8. #xpbd

@chrisbiscardi Well documented cautionary tales like these are extremely helpful.
Thank you for posting them!

#rust #rustlang #CautionaryTale #BevyEngine #xpbd

I'm making my own bevy_ecs-based (#xpbd) physics engine for cargo space. Wrote a post about tilemap collision, one-way platforms and how I implemented and optimized the collision broadphase.

https://johanhelsing.studio/posts/cargo-space-devlog-5

#cargospace #gamedev #rustlang #bevyengine

Cargo Space devlog #5 - Adventures in physics engine development with bevy_ecs

I started filling in the gaps in my home-made physics implementation. In this post I go painstakingly detailed about my adventures in implementing one-way platforms and prematurely optimizing broadphase collision detection. Bonus yak-shaving sections on bevy_screen_diagnostics, and bevy_sparse_grid_2d

Johan Helsing Studio