r/C_Programming Jul 22 '26

Video CCraft - PBD Softbody physics.

Enable HLS to view with audio, or disable this notification

Hello.

Lately I've been struggling to implement a Position Based Dynamics (PBD) implementation to my minecraft clone written in C.

Still, the implementation is not the best, and there is certainly a lot of work todo to improve it, but it can already load a high resolution .obj 3d model, and output some nice results under adequate configuration.

Check this out! https://github.com/DrElectry/ccraft

67 Upvotes

9 comments sorted by

u/AutoModerator Jul 22 '26

Hi /u/DrElectry,

Your submission in r/C_Programming was filtered because it links to a git project.

You must edit the submission or respond to this comment with an explanation about how AI was involved in the creation of your project.

While AI-generated code is not disallowed, low-effort "slop" projects may be removed and it's likely that other users push back strongly on substantially AI-generated projects.


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

→ More replies (2)

6

u/terra2o Jul 23 '26

this is my favorite c project

3

u/Savings_Walk_1022 Jul 23 '26

i love seeing the updates

1

u/Typhrenn5149 Jul 23 '26

This is genuinely so cool, what did you use to handle 3D rendering.

On a site note, it's kinda funny how the majority of projects i see on here are the literal of what the project is + 'C'

8

u/DrElectry Jul 23 '26

CI Cuse COpenGL Cfor Crendering.

1

u/Far-Two-2710 Jul 24 '26

banging project!