https://github.com/dimforge/ncollide
2 and 3-dimensional collision detection library in Rust.
https://github.com/dimforge/ncollide
Last synced: 6 months ago
JSON representation
2 and 3-dimensional collision detection library in Rust.
- Host: GitHub
- URL: https://github.com/dimforge/ncollide
- Owner: dimforge
- License: apache-2.0
- Created: 2013-05-14T22:27:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T13:02:36.000Z (almost 3 years ago)
- Last Synced: 2025-05-14T19:08:43.739Z (6 months ago)
- Language: Rust
- Homepage: https://ncollide.org
- Size: 8.25 MB
- Stars: 932
- Watchers: 22
- Forks: 107
- Open Issues: 77
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- anything_about_game - ncollide - dimensional collision detection library in Rust. (Physics)
README
2D Documentation | 3D Documentation | User Guide | Forum
⚠️**This crate is now passively-maintained. It is being superseded by the [Parry](https://parry.rs) project.**⚠️
ncollide
========
**ncollide** is a 2 and 3-dimensional collision detection library written with
the rust programming language.
The official user guide is available [here](http://ncollide.org).
The rustdoc documentation is available [for 3D](http://ncollide.org/rustdoc/ncollide3d) and [for 2D](http://ncollide.org/rustdoc/ncollide2d).
## Compilation
You will need the last stable build of the [rust compiler](http://www.rust-lang.org)
and the official package manager: [cargo](https://github.com/rust-lang/cargo).
Simply add one the following (or both) to your `Cargo.toml` file:
```
[dependencies]
ncollide2d = "0.33" # For 2D collision detection.
ncollide3d = "0.33" # For 3D collision detection.
```
## Features
- dynamic bounding volume tree based broad phase
- ball vs. ball collision detection,
- plane vs. any convex object collision detection.
- collision detection between arbitrary convex objects
- compound geometries
- ray-casting
- time of impact computation for objects without rotational movement (compound vs. compound is not
yet implemented)
And various traits for collision detectors and broad phase collision detection.