High-performance libraries for simulating rigid body dynamics, collision detection, and physical interactions in game development.
Rapier is a cross-platform physics engine and rigid body dynamics solver designed for 2D and 3D simulations. It functions as a collision detection system and a robotics simulation framework, providing a consistent API for calculating physical interactions across different environments. The engine distinguishes itself with specialized robotics capabilities, including a toolkit for importing URDF and STL models to control multibody chains. It supports precise mechanical movement through inverse kinematics calculations and the application of PID controllers for dynamic body control. The simulat
Rapier is a cross-platform physics engine and rigid body solver that explicitly supports both 2D and 3D simulations with collision detection, constraints, and broadphase acceleration, making it a comprehensive fit for game development physics.
Matter-js is a 2D rigid body physics engine written in JavaScript for simulating realistic physical interactions, collisions, and dynamics in web browsers. It functions as a web physics simulation library that calculates motion, gravity, and constraints for objects rendered on a web canvas. The library includes a built-in canvas physics visualizer to draw physical bodies, joints, and constraints for debugging and gameplay. It distinguishes itself through a plugin system that supports recursive dependency resolution and internal method patching to inject custom logic into the engine's executio
Matter-js is a 2D rigid body physics engine with comprehensive collision detection, constraints, and broadphase acceleration, but it does not support 3D physics as your search requires—it's a strong 2D-only option, not a dual-dimension library.
MuJoCo is a physics simulation engine designed for the dynamics of multi-joint articulated structures. It provides a computational framework for calculating the forces, velocities, and physical interactions of complex models within a virtual environment, supporting research in robotics, biomechanics, and machine learning. The engine utilizes a constraint-based dynamics solver and recursive algorithms to manage the motion of articulated systems. It includes a native graphical interface for real-time visualization, allowing users to inspect physical behaviors and contact dynamics as they occur.
MuJoCo is a high-fidelity physics simulation engine focused on 3D dynamics for robotics and biomechanics, so it provides the physics library you need for 3D but lacks built-in 2D support, which makes it a narrower fit for a general-purpose 2D/3D game development library.
Cyclone Physics is a three-dimensional rigid body physics engine designed for game development. It provides a framework for simulating the motion, rotation, and physical interactions of solid objects by applying fundamental laws of mechanics. The library utilizes discrete time integration to update object positions and velocities across fixed intervals. It manages complex scenes through a bounding volume hierarchy and employs impulse-based collision resolution to maintain momentum during contact. To handle simultaneous interactions, the engine uses an iterative velocity solver that repeatedly
Cyclone Physics is a C++ physics engine library for game development, based on the book "Game Physics Engine Design"; it provides 3D rigid body dynamics and collision detection but does not include 2D support, so it partially matches your requirement for a 2D/3D library.
Coffee-Physics is a lightweight physics engine designed for two-dimensional particle simulation within web environments. It provides a framework for managing the movement and physical interactions of individual objects across a coordinate system, utilizing a collection of mathematical functions to calculate trajectories and collision responses. The library employs Verlet-based integration to maintain stability by tracking coordinate history, avoiding the need for explicit velocity or acceleration variables. It enforces deterministic behavior through fixed-step time stepping, which ensures con
A physics engine library written in CoffeeScript, but it appears to be 2D only — it will give you rigid body dynamics and collision detection for games, but not the 3D support this search requires.