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
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool 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

5 days ago