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

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

#38 in #convex

Download history 39/week @ 2024-07-22 126/week @ 2024-07-29 45/week @ 2024-08-05 99/week @ 2024-08-12 45/week @ 2024-08-19 31/week @ 2024-08-26 46/week @ 2024-09-02 68/week @ 2024-09-09 28/week @ 2024-09-16 133/week @ 2024-09-23 85/week @ 2024-09-30 55/week @ 2024-10-14 33/week @ 2024-10-21 70/week @ 2024-10-28 68/week @ 2024-11-04

226 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
~63K SLoC