C++ Physics

Open-source C++ projects categorized as Physics

Top 23 C++ Physic Projects

  • Bullet

    Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.

  • Project mention: Blaze: A High Performance C++ Math library | news.ycombinator.com | 2024-04-17

    For typical game physics engines... not that much. Math libraries like Eigen or Blaze use lots of template metaprogramming techniques under the hood that can help when you're doing large batched matrix multiplications (since it can remove temporary allocations at compile-time and can also fuse operations efficiently, as well as applying various SIMD optimizations), but it doesn't really help when you need lots of small operations (with mat3 / mat4 / vec3 / quat / etc.). Typical game physics engines tend to use iterative algorithms for their solvers (Gauss-Seidel, PBD, etc...) instead of batched "matrix"-oriented ones, so you'll get less benefits out of Eigen / Blaze compared to what you typically see in deep learning / scientific computing workloads.

    The codebases I've seen in many game physics engines seem to all roll their own math libraries for these stuff, or even just use SIMD (SSE / AVX) intrinsics directly. Examples: PhysX (https://github.com/NVIDIA-Omniverse/PhysX), Box2D (https://github.com/erincatto/box2d), Bullet (https://github.com/bulletphysics/bullet3)...

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Box2D

    Box2D is a 2D physics engine for games

  • Project mention: Blaze: A High Performance C++ Math library | news.ycombinator.com | 2024-04-17

    For typical game physics engines... not that much. Math libraries like Eigen or Blaze use lots of template metaprogramming techniques under the hood that can help when you're doing large batched matrix multiplications (since it can remove temporary allocations at compile-time and can also fuse operations efficiently, as well as applying various SIMD optimizations), but it doesn't really help when you need lots of small operations (with mat3 / mat4 / vec3 / quat / etc.). Typical game physics engines tend to use iterative algorithms for their solvers (Gauss-Seidel, PBD, etc...) instead of batched "matrix"-oriented ones, so you'll get less benefits out of Eigen / Blaze compared to what you typically see in deep learning / scientific computing workloads.

    The codebases I've seen in many game physics engines seem to all roll their own math libraries for these stuff, or even just use SIMD (SSE / AVX) intrinsics directly. Examples: PhysX (https://github.com/NVIDIA-Omniverse/PhysX), Box2D (https://github.com/erincatto/box2d), Bullet (https://github.com/bulletphysics/bullet3)...

  • JoltPhysics

    A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West.

  • Project mention: Simulation Islands | news.ycombinator.com | 2023-10-10
  • Piccolo

    Piccolo (formerly Pilot) – mini game engine for games104

  • LiquidFun

    2D physics engine for games

  • FluidX3D

    The fastest and most memory efficient lattice Boltzmann CFD software, running on all GPUs via OpenCL.

  • Project mention: FluidX3D | news.ycombinator.com | 2024-03-24
  • PhysX

    NVIDIA PhysX SDK

  • Project mention: If you can't beat, block em | /r/pcmasterrace | 2023-07-05

    I know you mean PhysX how it was WAYYY back (& GPU accel), but it's been open source for ages.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • root

    The official repository for ROOT: analyzing, storing and visualizing big data, scientifically

  • Project mention: CERN Root | news.ycombinator.com | 2024-06-01
  • Simbody

    High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems like vehicles, robots, and the human skeleton.

  • CHRONO

    High-performance C++ library for multiphysics and multibody dynamics simulations (by projectchrono)

  • Project mention: Any Good Alternatives for Matlab? | /r/AskEngineers | 2023-06-16

    Hopsan https://liu.se/en/research/hopsan and Project Chrono https://projectchrono.org/ may be good Simulink alternatives.

  • godot-jolt

    Godot Jolt is a Godot extension that integrates the Jolt physics engine

  • Project mention: Rust Game Physics Engines: PhysX, Rapier, XPBD & Others | dev.to | 2024-04-03

    Some other Rust game engines ship with their own physics engine. Fyrox, for example, has advanced 2D/3D physics, supporting rigid bodies, joints, ray casting and more. Godot too, which has community-led Rust bindings also has an in-built physics engine as well as a Godot-native extension using the Jolt physics engine. In fact, which is reported to be more performant than the official physics engine.

  • pioneer

    A game of lonely space adventure

  • gazebo-classic

    Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim

  • psi4

    Open-Source Quantum Chemistry – an electronic structure package in C++ driven by Python

  • sofa

    Real-time multi-physics simulation with an emphasis on medical simulation. (by sofa-framework)

  • Project mention: SOFA Simulation | /r/robotics | 2023-08-03

    I have explored various resources, including the official Sofa website, SofaPython3 website, and YouTube videos, yet I have not been successful in locating valuable guidance on initiating the learning process for Sofa using Python. I know how to write basic Python, but I find myself perplexed regarding the necessary steps to construct models and execute simulations effectively.

  • GamePhysicsCookbook

    Source code for Game Physics Cookbook

  • gz-sim

    Open source robotics simulator. The latest version of Gazebo.

  • Project mention: Ask HN: Examples of Companies/Tools Simulating Real World Processes | news.ycombinator.com | 2024-02-17
  • stuntrally

    Note: development continues in stuntrally3. 3D racing game based on VDrift and OGRE with own Track Editor. The main repository with Stunt Rally 2.x sources and data.

  • Project mention: Stunt Rally – a free rally racing game with editor | news.ycombinator.com | 2024-04-28
  • harfang3d

    HARFANG 3D source code public repository

  • Project mention: 3D Engine in Python: New update on Harfang 3D | /r/Python | 2023-08-23

    👉 Last release - Github

  • ofxBox2d

    Openframework wrapper for box2d

  • Physics3D

    A 3D physics engine

  • WarpX

    WarpX is an advanced, time-based electromagnetic & electrostatic Particle-In-Cell code.

  • Open-Gamma-Detector

    ☢️👁️ Hardware for a hackable DIY gamma-ray spectrometer using a popular NaI(Tl) scintillator, SiPM and a Raspberry Pi Pico.

  • Project mention: Open-Gamma-Detector: a hackable DIY gamma-ray spectrometer | news.ycombinator.com | 2023-08-13
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ Physics discussion

Log in or Post with

C++ Physics related posts

Index

What are some of the best open-source Physic projects in C++? This list will help you:

Project Stars
1 Bullet 12,081
2 Box2D 7,372
3 JoltPhysics 5,769
4 Piccolo 5,606
5 LiquidFun 4,648
6 FluidX3D 3,365
7 PhysX 3,100
8 root 2,513
9 Simbody 2,243
10 CHRONO 2,094
11 godot-jolt 1,796
12 pioneer 1,581
13 gazebo-classic 1,148
14 psi4 932
15 sofa 879
16 GamePhysicsCookbook 818
17 gz-sim 597
18 stuntrally 591
19 harfang3d 523
20 ofxBox2d 322
21 Physics3D 296
22 WarpX 269
23 Open-Gamma-Detector 234

Sponsored
Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com