[HN Gopher] Tinyphysicsengine: Minimalist 3D C99 single-header p... ___________________________________________________________________ Tinyphysicsengine: Minimalist 3D C99 single-header physics engine Author : nateb2022 Score : 118 points Date : 2022-10-12 18:29 UTC (4 hours ago) (HTM) web link (codeberg.org) (TXT) w3m dump (codeberg.org) | [deleted] | amelius wrote: | Title should include "for entertainment purposes" as the aim of | the library is not physical accuracy. | yuzuquat wrote: | aren't games made "for entertainment purposes" by definition? | :P | fedeb95 wrote: | Title doesn't say this is for games. Slightly misleading, | found it interesting anyway | yuzuquat wrote: | Ah, you're right. Reading through the readme made me think | this was very much designed with games in mind: | | "TPE is a keep it simple engine for people who just want to | add simple physics to their tiny game without being | bothered by bullshit." | gatane wrote: | This is from the same guy who wrote raycastlib, anarch and SAF. | | https://gitlab.com/drummyfish/raycastlib | | https://drummyfish.gitlab.io/anarch/ | | https://codeberg.org/drummyfish/SAF | UniverseHacker wrote: | Cool projects. This guy makes RMS seem like a sell out / | conformist. | anthk wrote: | - Code philosophy: right, really good ideas. | | - Loli/pedo: Nope. If he was ephebofile and he being <=25, it | would be understandable as the brain matures at that age and | maturity stages overlap. If he is over 25, 16 would be the hard | limit, 15 on really exceptional cases. If you are 25 and more, | nearly all the girls under 18 begin to feel annoying, | hystrionic and "hateful/moronic/silly", the kind of people you | want to be far away from. | | But he is probably under the Asperger spectrum, so who knows. | | - Race is not a social construct. There are significant and | inherent differences between human races and the two genders. | | Genders: Actually, two overlapping Gaussian bell curves. The | more secure and technology advanced it's the society, the more | overlap you have. On races, poverty it's definitely a huge | factor, and OFC nutrition. And the lack of education. | | I'm from Spain. Here we had Iberians, Phoenicians, Swebians, | Basques, Celts, Goths, Romans, Moors, Italians, Frenchmen, | Brit, Japanese, Greek and who knows. Which race am I? Which | culture I belong to? | | - Civilization will end in a decade or two. ] | | Actually, it will mutate, not end. Something solarpunk based, | low power computers, solar based. Oil based transports will | die. Also, fusion based energy will get a boost. | | Ah, well, a low-scale war in the Arctic with Russia and China | it's guaranteed. | | - 90s | | They sucked. If you didn't have parents on a white collar job, | or brothers at the uni, you would be isolated from the tech | world in a brutal way. Your classmates with Encarta and | Internet in ~1998-1999 did FAR better than you than that huge | 30 volume based encyclopedia at the living room. | | - C99, Python, JavaScript, Bash, C++, ... | | Ansi/C99 it's fine. Instead of Python/Bash, I'd choose Perl in | a breeze. C++? No, please. I'd prefer Golang. | | - LMMS | | Sox. Or Lilypond+Frescobaldi. | | - TXT, MD, HTML, ghostwriter, LaTeX, LibreOffice | | Groff, or simpler: Asciidoc + aamath. For spreadsheets, sc- | im+gnuplot and tabular data with AWK. | | - ... Reddit... torsocks lynx | gopher://gopherddit.com | dekken_ wrote: | > Also, fusion based energy will get a boost. | | A boost in funding, or a boost in output? The latter is so | uncertain you shouldn't be speaking like this. | anthk wrote: | Both. Output, and because of that, funding. | dekken_ wrote: | While I hope so, you can't know it will. | aaaaaaaaaaab wrote: | What is this comment about? | dekken_ wrote: | I assume https://www.tastyfish.cz/ | nmilo wrote: | Not sure why you thought this was the perfect place to debunk | all of the author's views on various unrelated topics. While | it's not like I agree with him on everything, if it bothers | you so much, send him an email. | keepquestioning wrote: | Can this be done in OpenCL? | dekken_ wrote: | You can do physics/computations in OpenCL, but not the graphics | part | merlincorey wrote: | This is brilliant work and I think their soft-body model is | pretty simple and understandable why it "works": | | > The basic principles in short: TPE uses soft body physics, | bodies are modelled as spheres connected by springs but the | springs can be made stiff so that the bodies behave almost like | rigid bodies, so you can simulate (fake) both soft and rigid | physics. Environment in which bodies are placed is modelled by | distance functions, i.e. you can in theory create any environment | as long as you can create a function that for any point in space | returns the closest point to the environment (functions for basic | and some more complex shapes are included in TPE). | meheleventyone wrote: | You'll love this then, using a similar mass-spring approach to | model vehicle dynamics in a PS1 game: | https://youtu.be/pwbwFdWBkU0 | | There's a bunch of similar stuff with varying degrees of | physical accuracy under Position Based Dynamics and the more | physically correct eXtended Position Based dynamics. It's a fun | approach. ___________________________________________________________________ (page generated 2022-10-12 23:00 UTC)