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

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

#40 in #convex

Download history 15/week @ 2023-12-04 33/week @ 2023-12-11 52/week @ 2023-12-18 21/week @ 2023-12-25 4/week @ 2024-01-01 46/week @ 2024-01-08 26/week @ 2024-01-15 20/week @ 2024-01-22 8/week @ 2024-01-29 7/week @ 2024-02-05 22/week @ 2024-02-12 100/week @ 2024-02-19 128/week @ 2024-02-26 74/week @ 2024-03-04 144/week @ 2024-03-11 115/week @ 2024-03-18

463 downloads per month
Used in 4 crates

BSD-3-Clause

755KB
18K SLoC

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

~3.5MB
~62K SLoC