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
Powerful App Monitoring Without Surprise Bills Icon
Powerful App Monitoring Without Surprise Bills

AppSignal starts at $23/month with all features included. No overages, no hidden fees. 30-day free trial.

Tired of monitoring tools that punish you for scaling? AppSignal offers transparent, predictable pricing with every feature unlocked on every plan. Track errors, monitor performance, detect anomalies, and manage logs across Ruby, Python, Node.js, and more. Trusted by developers since 2012 with free dev-to-dev support. No credit card required to start your 30-day trial.
Try AppSignal 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