2DPhysics is a real-time physics simulation engine built with C++ and OpenGL for gravitational and electric field simulations. Features include accurate gravitational and electric force calculations, real-time collision detection, and an interactive ImGui interface. Users can create circles with customizable mass, radius, and charge properties, then observe interactions with configurable fields. Supports drag-and-drop manipulation, adjustable time scale, and velocity visualization. Built on a custom cPhysics library implementing Newtonian mechanics with proper numerical integration. Uses C++23, CMake, GLFW, GLEW, and ImGui. Objects can be fixed or movable, enabling orbital mechanics demonstrations and charged particle experiments. Includes preset charge values, field direction controls, and vertical sync options. Suitable for educational purposes and physics experimentation.

Features

  • Real-time Physics Simulation
  • Gravitational & Electric Fields
  • Interactive Object Manipulation
  • Collision Detection
  • ImGui Interface

Project Activity

See All Activity >

Follow 2D-Physics

2D-Physics Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of 2D-Physics!

Additional Project Details

Registered

2026-02-12