#collision-detection #collision #convex #ray #distance #geometry

unmaintained ncollide3d

2 and 3-dimensional collision detection library in Rust. Will be superseded by the parry3d crate.

39 unstable releases

0.33.0 Mar 18, 2022
0.32.0 Aug 8, 2021
0.31.0 Jul 11, 2021
0.28.0 Mar 1, 2021
0.17.1 Jul 28, 2018

#24 in #convex

Download history 1477/week @ 2024-07-20 1755/week @ 2024-07-27 1752/week @ 2024-08-03 2000/week @ 2024-08-10 1944/week @ 2024-08-17 1493/week @ 2024-08-24 1773/week @ 2024-08-31 1759/week @ 2024-09-07 1417/week @ 2024-09-14 1873/week @ 2024-09-21 1927/week @ 2024-09-28 1613/week @ 2024-10-05 1983/week @ 2024-10-12 4335/week @ 2024-10-19 1362/week @ 2024-10-26 2169/week @ 2024-11-02

10,049 downloads per month
Used in 45 crates (13 directly)

Apache-2.0

1MB
25K SLoC

Build status

2D Documentation | 3D Documentation | User Guide | Forum

⚠️This crate is now passively-maintained. It is being superseded by the Parry 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. The rustdoc documentation is available for 3D and for 2D.

Compilation

You will need the last stable build of the rust compiler and the official package manager: 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.

Dependencies

~5.5MB
~100K SLoC