Skip to content

BerkaySevinc/falling-elements

Repository files navigation

Falling Elements

Falling Sand Simulation written in C#.
A simple 2D physics sandbox where materials like sand and water fall, interact, and collide.
The core simulation logic is separated into a reusable library, with a demo application included for interaction and visualization.

Details

  • Written in C#.
  • Uses Windows Forms for the GUI.
  • Renders using the built-in C# Graphics library, relying exclusively on the CPU.
  • Utilizes a 2D grid system to manage particles.
  • Implements a simple update loop to simulate gravity and interactions.
  • The mouse is used to "draw" particles on the screen.

Projects

  • WorldSimulation — Platform-agnostic core library. Handles the particle system, physics, and world simulation.
  • WorldSimulation.Renderer — Windows Forms rendering layer. Draws the simulation and translates mouse input to world coordinates.
  • FallingElements.App — Demo application. Wires up the simulation and renderer into an interactive sandbox.

Media

Video 1 Video 2 Video 3

Releases

No releases published

Packages

 
 
 

Contributors

Languages