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
$300 in Free Credit for Your Google Cloud Projects Icon
$300 in Free Credit for Your Google Cloud Projects

Build, test, and explore on Google Cloud with $300 in free credit. No hidden charges. No surprise bills.

Launch your next project with $300 in free Google Cloud credit—no hidden charges. Test, build, and deploy without risk. Use your credit across the Google Cloud platform to find what works best for your needs. After your credits are used, continue building with free monthly usage products. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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