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

deprecated ncollide_transformation

DEPRECATED: use ncollide2d or ncollide3d insead

12 releases (7 breaking)

Uses old Rust 2015

0.9.1 Apr 27, 2019
0.9.0 Feb 4, 2018
0.8.0 Aug 16, 2017
0.7.0 May 2, 2017
0.2.1 Jul 7, 2015

#32 in #ray

Download history 62/week @ 2023-11-20 36/week @ 2023-11-27 20/week @ 2023-12-04 37/week @ 2023-12-11 65/week @ 2023-12-18 24/week @ 2023-12-25 5/week @ 2024-01-01 57/week @ 2024-01-08 30/week @ 2024-01-15 25/week @ 2024-01-22 12/week @ 2024-01-29 15/week @ 2024-02-05 37/week @ 2024-02-12 69/week @ 2024-02-19 147/week @ 2024-02-26 107/week @ 2024-03-04

364 downloads per month
Used in 5 crates (via ncollide)

BSD-3-Clause

615KB
15K 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

~3.5MB
~62K SLoC