524 points · by makepanic · 4mo ago · 130 comments
https://kotaku.com/this-guy-created-angry-birds-physics-and-...
But one thing amazed us all. It was impressive that the marketing guy knew which physics engine was used!
Yeah that was my immediate take away.
Angry Birds generated $500M [0], supposedly.
I would also not be surprised if the Rovio developers, designers, testers, etc. who worked on this game did not get a share of that $500M pie - I actually assume they didn't.
But still, you know. Dare I say it - what about "fairness"? :-)
[0] https://gameworldobserver.com/2023/02/28/angry-birds-2-reven...
To be clear, I think that open source maintainers deserve much more, but I don't understand why we rarely inspect the licenses as the source of the problem.
That's almost certainly the case, yes. Anything like royalties / residuals is pretty much unheard of in gamedev. You do the work, you do the crunch, you don't talk about conditions, you don't talk about pay, you are actively hostile towards the 'U' word, your boss _________ ____ __ _____. For your service, you get the chance to be in the credits, provided your service continues after going "gold"[0], of course. Then you get laid off which is actually a win because you get to leave the company without getting blacklisted. Please forgive the gentle hyperbole, it's illustrative.
The situation may have improved (slightly)[1] with ~actors as SAG-AFTRA was a growing influence in the industry some years ago. I'm a bit out of the loop on that side of things, though.
[0] not that anyone ships after going gold anymore
[1] improved slightly relative to "I'm the voice of Niko Bellic and I got paid in Famista cassettes" -- no this is not a true story, I'm actually not even a voice actor.
Thanks to Erin for such a useful piece of software!
I wonder if the landscape is empty enough for a resurgence.
Any addition to this small and exclusive list is very welcome :)
I remember trying this back in 2004 or so when i was making my first real 3D game engine, but i ended up abandoning it because i was trying to use it on 64bit Linux and the source code had typecasts between pointers and (32bit) ints all over the place :-P.
That was fixed later and apparently the engine was used in a few commercial games during the 2000s and early 2010s.
On the web alone, there is also:
ammo.js, - a wasm port of bullet
cannon.js, - a hand rolled engine
oimo.js, - an older hand roll
rapier.js - a newer hand roll
jolt.js - a newer engine based on the engine used in horizon zero dawn.
physx.js/wasm - nvidia wasm port of physx
havok.js/wasm - microsoft endowed wasm port of havok (used in babylon)
I've been in the space for a while, and anecdotally, PhysX is the most robust, stable, and vying for speed with Havok which is slightly faster, but makes some different accuracy choices for speed. ammo/(Bullet) was one of the earliest serious engines to make it to the web.
r.e. - Box3d - Erin Catto is pretty legendary in the physics engine scene for (box2d).. it has powered a huuuuge number of games that many of us have likely enjoyed...
So I'm definitely gonna keep my eyes on this one!
I spent many of my teenage and early adult years trying to replicate it in HTML5. Finally got the Open Source version of IB2 largely ported during COVID: https://github.com/JoshTheDerf/Incredibots-2-HTML5-Open-Sour...
I remember every day as a kid logging on to find new vehicles, challenges, rube-goldberg machines. Some content archives are still online, but don't scratch that itch as an adult. For its time, Incredibots really nailed the sweet spot between expressiveness and ease to create content.
There wasn't anything about determinism in the announcement, but I'd really love to see some more about that, too. Trying to use Unity's built-in physics to make a networked billiards game is quite troubling, when none of the clients can happily agree on what happened.
EDIT: Clarified meaning about ffast-math
This is absolutely fantastic!
In any case, it's quite likely that the physics simulation is not being initialised with identical state on each instance, so the physics engine -- even if it claims to be deterministic -- cannot be expected to arrive at the same solution across instances. From the scripting layer atop Unity (et al.) you are essentially out of luck. You don't have the requisite control/access to guarantee the simulation input is consistent.
To expand on the "quite likely" variance in the simulation input, there's an unending list of possibilities, so just a couple of points: Unity is really really big and complicated. The physics engine in Unity is not primarily there to be a FEATURE: physics engine. It's a general purpose collision system, and it's fundamental to Unity's whole world/scene/components. It's always running. Stuff that has nothing to do with what you see as your simulation can affect your simulation.
My unopinionated advice is: read Glenn Fiedler's classic networked physics articles[0].
My opinionated advice is: you're making a game where the physics is the whole game. It's also a very nicely contained problem space. Write your own physics simulation. It's gameplay code. Also, typical rigid body physics engines certainly can do a billiards sim, but they aren't actually that good at it.
Bullet Physics author.
Box3D-based Spectre VR? It's so happening. (Shades of Tanarus ..)
EDIT: holy smokes, the transition to recording and playback in the Legend of California demo (Unreal Engine-based) is quite a jarring leap. If you at first get the impression things are quite basic, be sure to get into at least 18:00 into the demo video, it gets pretty wild .. recording and playback is awesome.
Someone tried to bind Jolt to C and then Odin, and the result is not very enjoyable.
PS: FWIW made my own physics engine in 3D space just few weeks ago (and shared it here). OK ok ... it's just a 1-liner that brings an object down at regular interval but it's surprising how well it works already! I recommend you give it a go as from a learning perspective it's really fun.
wait....
Box3D
3D
3
Hope!
1 - I’ve been sitting on this domain for years: https://lightcycles.io
https://github.com/snackdotgame/jolt-ts
I also have an open source character controller for it
https://github.com/snackdotgame/jolt-ts-character-controller
I'm a big fan of jolt because they have a more incremental way of snapshotting physics state which really reduces the amount of serialization and memory you have to do if you want to implement deterministic netcode.
I have to say, based on those videos, that is one accurately-named engine.
Very easy to build, and quite small. A release build of the library is 916K (on macos at least). I have a game engine that compiles to WASM for web, and having 3D physics has been a challenge. 3D physics libraries tend to be large and hard to compile. I didn't try yet, but compiling this into a WASM library with emscripten should be easy, and it's likely small enough to be justifiable for a simple web game.
https://github.com/Birch-san/box2d-wasm
And Catto said, Box3D is very similar to Box2D.
It's interesting to see that Box3D was originally a fork of a physics engine made by Dirk. Dirk is one of the best presenters in GDC, and so influential in Physics Engine space, nice to see how he's continuing to push the latest and greatest forward.
My reading of Box3D's docs is that it has 'cross platform determinism', and 'recording/replay'? Isn't that sufficient?
Synchronize inputs, determine if inputs were 'mispredicted', if so, rollback the physics world, apply the changed inputs and resimulate?
Just for context: I implemented state-sync netcode into box2d in 2018 and shipped multiple real games using it - and I work on netcode professionally.
I'm planning on adding full netcode support for box3d and releasing it as part of a larger framework.
https://box2d.org/documentation3d/md_simulation.html#autotoc...
Great website, though. I'm fixing my time step all day.
Well - simply see it as a feature. A horror game where poltergeists infiltrate objects. Stephen King even wrote some book about that, and that got a B movie too.
Also shame on the Unreal engine to have such huge bugs and nobody fixing it. Still, I like the idea of horror movies more. Finally poltergeist makes a come back - it was a really scary movie when I was young.
For a long time there wasn't deformers in Box2D (not sure if it's in there now), I hacked by own but I was a dumb 17yo and it was a horrid mess back in the day. Maybe AI could do better than the old me, but I gave up pretty quickly after not getting good results.
So basically lack of support for non-rigid bodies and lack of easy customisability made it not age well for someone like me.
But I know people who have had performance issues with it when building large maps/worlds as well so there are other issues.
Again all of these could have been fixed if they paid more attention to it, more dev time, but it was free so I couldn't really ask for more as a broke student.
And best part was you could run it on any hardware, I remember cooking up a small 2d demo on a rpi back in the day. Fun times.
https://box2d.org/posts/2025/04/box2d-3.1/
It became the current box2d implementation, now after version 3.0, it was entirely rewritten in C, it works differently.