• Stars
    star
    921
  • Rank 49,603 (Top 1.0 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 11 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

2 and 3-dimensional collision detection library in Rust.

crates.io crates.io 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.

More Repositories

1

nalgebra

Linear algebra library for Rust.
Rust
3,909
star
2

rapier

2D and 3D physics engines focused on performance.
Rust
3,894
star
3

nphysics

2 and 3-dimensional rigid body physics engine for Rust.
Rust
1,624
star
4

bevy_rapier

Official Rapier plugin for the Bevy game engine.
Rust
1,218
star
5

parry

2D and 3D collision-detection library for Rust.
Rust
554
star
6

salva

2 and 3-dimensional fluid simulation library in Rust.
Rust
503
star
7

rapier.js

Official JavaScript bindings for the Rapier physics engine.
TypeScript
410
star
8

simba

Set of mathematical traits to facilitate the use of SIMD-based AoSoA (Array of Struct of Array) storage pattern.
Rust
288
star
9

alga

Abstract algebra for Rust.
Rust
194
star
10

sparkl

MPM physics simulation in Rust
Rust
39
star
11

rapier.rs

Official website for the Rapier physics engine.
HTML
19
star
12

bevy_salva

Official Salva plugin for the Bevy game engine.
13
star
13

nalgebra.org

Source code for the website of the nalgebra project.
JavaScript
7
star
14

Steadyum

Physics Sandbox with Rapier
Rust
6
star
15

ncollide.org

Source code for the website of the ncollide project.
CSS
4
star
16

rustsim.org

Official website of the rustsim organization.
JavaScript
4
star
17

nphysics.org

Source code for the website of the nphysics project.
CSS
3
star
18

parry.rs

Official website for the Parry collision-detection library
JavaScript
3
star
19

salva.rs

Source code for the website of the Salva project.
CSS
3
star
20

dimforge-bench

Continuous benchmarking tools for the Dimorge projects.
Rust
2
star
21

distributed-physics-prototype

Experiments on distributed physics with Rapier
Rust
2
star
22

github-ci-secrets-test

1
star