#collision #geometry #distance #ray #convex

yanked ncollide

DEPRECATED: use ncollide2d or ncollide3d instead. 2 and 3-dimensional collision detection library in Rust.

Uses old Rust 2015

0.14.3 Apr 27, 2019
0.14.1 Feb 8, 2018
0.13.0 Aug 16, 2017
0.12.0 May 2, 2017
0.2.0 Nov 22, 2014

#21 in #convex

Download history 92/week @ 2021-05-27 90/week @ 2021-06-03 130/week @ 2021-06-10 72/week @ 2021-06-17 77/week @ 2021-06-24 88/week @ 2021-07-01 106/week @ 2021-07-08 104/week @ 2021-07-15 95/week @ 2021-07-22 141/week @ 2021-07-29 218/week @ 2021-08-05 89/week @ 2021-08-12 94/week @ 2021-08-19 31/week @ 2021-08-26 4/week @ 2021-09-02 121/week @ 2021-09-09

414 downloads per month
Used in 4 crates

BSD-3-Clause

740KB
18K SLoC

crates.io Build status

Documentation | User Guide | Forum

ncollide

ncollide is a 2 and 3-dimensional collision detection library written with the rust programming language.

As its name suggests, it is generic wrt the dimension: it works with both 2-dimensional and 3-dimensional geometries. It might work with higher dimensions (never tried).

The official user guide is available here. The rustdoc documentation is available here.

Compilation

You will need the last stable build of the rust compiler and the official package manager: cargo.

Simply add the following to your Cargo.toml file:

[dependencies]
ncollide = "0.13"

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.

Contribution

Pull requests and issues are very welcome. In addition, click this button if you which to donate to support the development of ncollide:

Become a Patron!

Dependencies

~3MB
~57K SLoC