Crates.io | nphysics2d |
lib.rs | nphysics2d |
version | 0.24.0 |
source | src |
created_at | 2016-03-30 20:44:11.688596 |
updated_at | 2021-08-08 16:19:27.047553 |
description | 2-dimensional physics engine in Rust. This crate is being superseded by the rapier3d crate. |
homepage | http://nphysics.org |
repository | https://github.com/rustsim/nphysics |
max_upload_size | |
id | 4627 |
size | 905,539 |
Users guide | 2D Documentation | 3D Documentation | Forum
⚠️This crate is now passively-maintained. It is being superseded by the Rapier project.⚠️
nphysics is a 2 and 3-dimensional physics engine for games and animations. It uses ncollide for collision detection, and nalgebra for vector/matrix math. 2D and 3D implementations both share the same code!
Examples are available in the examples2d
and examples3d
directories. Interactive
3D are available there. Because those demos are based on
WASM and WebGl 1.0 they should work on most modern browsers. Feel free to ask for help
and discuss features on the official user forum.
There are a lot of physics engine out there. However having a physics engine written in Rust is much more fun than writing bindings and has several advantages:
nphysics is a very young library and needs to learn a lot of things to become a grown up. Many missing features are because of missing features on ncollide. Features missing from nphysics itself include:
The libraries needed to compile the physics engine are:
The libraries needed to compile the examples are: