tinyphysicsengine, my tiny KISS C 3D physics engine

tinyphysicsengine, my tiny KISS C 3D physics engine

Postby drummyfish » 28 Sep 2022, 20:42

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 :)
socialist anarcho-pacifist
Abolish all IP laws. Use CC0. Let's write less retarded software.
http://www.tastyfish.cz
User avatar
drummyfish
 
Posts: 448
Joined: 29 Jul 2018, 20:30
Location: Moravia

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

Postby PeterX » 28 Sep 2022, 21:21

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
User avatar
PeterX
 
Posts: 270
Joined: 01 Oct 2020, 21:44

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

Postby bzt » 30 Sep 2022, 18:57

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
User avatar
bzt
 
Posts: 332
Joined: 23 May 2021, 21:46

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

Postby drummyfish » 30 Sep 2022, 21:35

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 :)
socialist anarcho-pacifist
Abolish all IP laws. Use CC0. Let's write less retarded software.
http://www.tastyfish.cz
User avatar
drummyfish
 
Posts: 448
Joined: 29 Jul 2018, 20:30
Location: Moravia

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

Postby Technopeasant » 06 Oct 2022, 03:20

Nice job.
User avatar
Technopeasant
 
Posts: 176
Joined: 22 Feb 2017, 03:38

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

Postby jdc » 11 Oct 2022, 05:14

what about also a 2D library , bit hard do study large librarys.
jdc
 
Posts: 150
Joined: 29 Jun 2017, 16:48

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

Postby bzt » 13 Oct 2022, 04:24

Hey, looks like you've made it to the hacker news:
https://news.ycombinator.com/item?id=33181029

:thumbsup:

Cheers,
bzt
User avatar
bzt
 
Posts: 332
Joined: 23 May 2021, 21:46

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

Postby drummyfish » 13 Oct 2022, 17:16

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
socialist anarcho-pacifist
Abolish all IP laws. Use CC0. Let's write less retarded software.
http://www.tastyfish.cz
User avatar
drummyfish
 
Posts: 448
Joined: 29 Jul 2018, 20:30
Location: Moravia

Who is online

Users browsing this forum: Google [Bot] and 1 guest