Ncollide
2 and 3-dimensional collision detection library in Rust.
Install / Use
/learn @dimforge/NcollideREADME
⚠️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.
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
