r/Simulated • • 20h ago Mindblown

Interactive Soft body physics but it's a 2D pixel art car

889 Upvotes

Hey simulators,

I had this fun idea to add semi realistic damage model to cars in my game. So a rendered, 2D pixel art car is in reality a simple 3D mesh with soft body physics!

It is fully interactive and runs in real time inside my game in a browser - https://garden-wars.io


r/Simulated • • 55m ago

Proprietary Software [OC] Real-time engine simulation: crank, valves, combustion and exhaust flow computed live, and the sound comes straight out of it

46 Upvotes

Since this could look like a regular animation: nothing here is keyframed or recorded.

It's RevLab, a real-time engine simulator I wrote (Rust core). Every tick it steps the crank and pistons, valve lift, combustion pressure in each cylinder and the gas flow through the exhaust. The audio is generated from those pressure waves, and the same state drives the tach, the haptics and the 3D parts you see moving.

So the sound isn't picked per engine. Cylinder count, firing order, crank layout and header shape produce it. A crossplane V8 burbles and a flatplane V8 screams because of the firing intervals, not because of different recordings. The rotaries have no valves; the ports open as the apex seals pass.

Happy to answer questions about the model. It runs on phones, so the intake and exhaust pipes are 1D waveguide acoustics, not CFD.

App Store ยท Google Play


r/Simulated • • 2h ago

Various Find Your Country! 32 Country Marble Race in 3D ๐Ÿ† Only 1 Wins

Thumbnail
youtube.com
0 Upvotes

I've been building marble race simulations as a hobby, and this is my first big 3D tournament.

32 countries, 8 races, every race with its own track: waves, a giant spiral, a wall ride, lightning, jump pads and flame gates that set marbles on fire. After each race the last 4 countries are out, until 4 are left for the final.

Nothing is scripted, every result comes straight from the physics simulation. I honestly didn't know who would win until I rendered it.

Which country did you pick, and did it make the final? Feedback on the tracks is very welcome too, I'm planning a much bigger one next.


r/Simulated • • 20h ago

Research Simulation Introducing SwarmForge: A 100% Data-Driven Simulation Platform for Modeling Social Insect Societies (Ants, Bees, Termites, Wasps)

0 Upvotes

Hey everyone! ๐Ÿ‘‹ Over the past few years, Iโ€™ve been developing SwarmForge, an open-source, academic-grade simulation and research platform designed to model social and eusocial insect societies (Atta, Apis, Vespula, Reticulitermes, Pogonomyrmex, and more) with biological fidelity and real-time 3D visualization. Today, Iโ€™m excited to announce the release of SwarmForge v1.0 along with standalone, zero-prerequisite standalone packages for instant 1-click download and deployment! ๐Ÿš€

๐ŸŒŸ What is SwarmForge?

SwarmForge bridges computational biology, artificial life, multi-agent systems, and real-time 3D simulation into a unified Studio environment. Key capabilities include:

  • ๐Ÿงช 100% Data-Driven Biological Engine: Zero hardcoded constants! Lifespans, walking/flight speeds, oviposition rates, maturation stages (days $\rightarrow$ 1440 ticks/day), Arrhenius $Q_{10} = 2.2$ thermal kinetics, and caste protein thresholds are entirely customizable via biological presets.
  • โšก High-Throughput Artemis-odb ECS Engine: Custom zero-allocation Structure-of-Arrays (SoA) memory pooling, 256-bit bitmask ethology covering 220+ individual behaviors across 4 primitive words, and $O(1)$ spatial hashing grid.
  • ๐Ÿ”๏ธ 3D Terrarium & Subterranean World Editor: Procedural voxel terrain synthesis, soil moisture layers, underground cut planes, and dynamic water table simulation.
  • ๐Ÿ”ฅ Physics-Based Nest Thermodynamics: Stack-effect buoyancy ventilation, 1D Fourier heat diffusion, metabolic $CO_2$ dispersion grids, and passive colony thermal regulation.
  • ๐Ÿ’จ OpenCL / GPU Pheromone Diffusion: Massive 3D matrix evaporation, decay, and chemotaxis vector calculation.
  • ๐Ÿง  Multi-Tier Cognitive Architectures: Belief-Desire-Intention (BDI), Multi-rate Finite State Machines, Fuzzy Logic, Behavior Trees, and PyTorch ONNX integration.
  • ๐ŸŒ Distributed Megaterrarium & Multiplayer: World sharding across compute nodes, boundary halo pheromone exchange, inter-colony diplomacy, and tribute trade convoys.

๐Ÿ“Š Performance & Scaling Benchmarks

Colony SizeEngine ThroughputLatencyExecution Profile
1,000 entities61.7 TPS16.2 ms๐ŸŸข Real-Time 3D Interactive (60 FPS)
10,000 entities1.0 TPS~1,048 ms๐ŸŸก Full local ECS evaluation
1,000,000 entitiesMegacolony ComputeOff-Gridโš™๏ธ Headless SoA Mode (~32 MB RAM footprint)

๐Ÿ”— Links & Resources