2D deterministic physics simulation
Unity, C#
While experimenting with the deterministic lockstep-based game engine, I decided to port a simple 2d physics code I found online to C# and also make it deterministic. It wasn't easy, but the result is amazing. This engine supports two types of shapes for colliders: AABBs (Axis-Aligned Bounding Boxes) and circles. I made two types of colliders: dynamic and static.
In video, I'm controlling a little stick and spawning new colliders on top to visualize the engine's capabilities. Colliders are being drawn using Unity gizmos.
It would be awesome to extract this into a separate project and maybe put it in Unity asset store?
Comments
Post a Comment