Page 1 of 1

tinyphysicsengine, my tiny KISS C 3D physics engine

PostPosted: 28 Sep 2022, 20:42
by drummyfish
Hello,

I've created a small KISS/suckless public domain 3D physics engine in pure C, single header, with no dependencies, using only fixed point, similarly to my other libraries such as small3dlib. It's basically for people who hate bloat and/or want to program for tiny devices and/or just want a simple physics without any hassle. You can get it at

https://codeberg.org/drummyfish/tinyphysicsengine

Beware, it is quite simple and not physically accurate, it is basically a soft body engine but can also fake rigid body physics. It is not a robust framework, it doesn't come with clicky GUI tools, it's just pure C functions that will help you implement simple portable physics that can run basically on anything. Mainstream game devs probably won't find this interesting but I'd like to share this for the few of us who like the approach of high simplicity. It was also kind of an experiment in how much this would work, I haven't seen many other engines like this.

Image Image Image Image

I am planning to make a simple trackmania clone with this, the engine is basically the first step towards my game, but I tried to make it so that it can be used for many different things. That's about it, thanks and enjoy :)

Re: tinyphysicsengine, my tiny KISS C 3D physics engine

PostPosted: 28 Sep 2022, 21:21
by PeterX
I think you did a very good job.

And I would love to see a libre or PD car racing game. Of course we have some already (like Torcs and more) but they all have their drawbacks so the racing genre is definitely NOT over-populated.

Greetings
Peter

Re: tinyphysicsengine, my tiny KISS C 3D physics engine

PostPosted: 30 Sep 2022, 18:57
by bzt
drummyfish {l Wrote}:I've created a small KISS/suckless public domain 3D physics engine in pure C
I've went through the code, this is pretty impressive. I particularly like that it's not physics correct, rather just good enough and focused on effectiveness. Most games and applications aren't used by CERN, so this is a reasonable trade and you've done it remarkably well!

You have some strange views (like pedophilia not being a crime), so we don't always see eye-to-eye on everything, but I gladly admit that you're a pretty damn good programmer. Well done! If I were I you, I'd add this to those single header lists (there are some on github, just create a PR with your link), so that people can know about this stuff. I would be such a waste if it left unnoticed!

Cheers,
bzt

Re: tinyphysicsengine, my tiny KISS C 3D physics engine

PostPosted: 30 Sep 2022, 21:35
by drummyfish
Thanks PeterX and bzt, this is very much appreciated :) I tried to add my libraries to some GitHub lists but last time I checked it seemed unmaintained, and by now I basically distanced myself from the mainstream (GitHub) "opensource" community and don't really even care anymore, I share my libraries in the circles of people I feel closer to, anyone can spread the word further :)

Re: tinyphysicsengine, my tiny KISS C 3D physics engine

PostPosted: 06 Oct 2022, 03:20
by Technopeasant
Nice job.

Re: tinyphysicsengine, my tiny KISS C 3D physics engine

PostPosted: 11 Oct 2022, 05:14
by jdc
what about also a 2D library , bit hard do study large librarys.

Re: tinyphysicsengine, my tiny KISS C 3D physics engine

PostPosted: 13 Oct 2022, 04:24
by bzt
Hey, looks like you've made it to the hacker news:
https://news.ycombinator.com/item?id=33181029

:thumbsup:

Cheers,
bzt

Re: tinyphysicsengine, my tiny KISS C 3D physics engine

PostPosted: 13 Oct 2022, 17:16
by drummyfish
holy :o I had no clue about this... I take a look at codeberg and it suddenly has 19 stars, I'm very glad :) thanks for letting me know