FPEeee
- 7 Devlogs
- 46 Total hours
Funky Physics Engineee! A 2D/3D verlet physics engine that supports distance constraints, springs, and circle-circle collision, all in C for superb interoperability.
Funky Physics Engineee! A 2D/3D verlet physics engine that supports distance constraints, springs, and circle-circle collision, all in C for superb interoperability.
Finally added mass to the engine!
Before now all the particles had the same mass (just implicitly, so basically all of them had a mass of 1), making the small ones super dense.
Took so long because I had to migrate back to 2d in order to make sure the mass was working in 2d (everything was in 3d already so I actually added mass to 3d first), and had to update the 2d rendering for it to be able to render in 3d, but now everything (especially springs), is a lot cooler!
I added the shape generators back for 3d, now we have ✨ 3D cloth ✨!
Trying to move to 3D, finally got triangle-sphere collisions working
the edges were by far the hardest part, the sphere-face collision actually wasn’t too hard
the engine wasn’t built for walls to be able to move, but it can handle it semi fine (I’m just having rotating walls for the cool 3d showcase)
Added some functions that generate shapes for you, for example, cloth!
not that big but i migrated to the sdl callback system, so it works on emscripten now (can run in browser)
ignore my screen recorder quality
got circle-circle collision working and with a lot of balls its a bit like a fluid
cleaned up main.c as well too
includes double pendulum for clout
not actually accurate but looks fine
it uses verlet integration and supports springs as well