23 releases (breaking)
✓ Uses Rust 2018 edition
|0.20.1||Apr 4, 2019|
|0.19.0||Jan 12, 2019|
|0.18.0||May 13, 2018|
|0.15.0||Mar 13, 2018|
|0.0.5||Mar 5, 2015|
#11 in Game development
784 downloads per month
Used in 10 crates (9 directly)
This library is an extension of cgmath that provides collision detection primitives, bounding volumes and collision detection algorithms.
The library provides:
- a generic ray:
- a plane type:
- a view frustum:
- axis-aligned bounding boxes:
- oriented bounding boxes:
- additional bounding volumes:
- collision primitives:
- a dynamic bounding volume tree (
- broad phase collision detection:
Sweep and Prune
- discrete narrow phase collision detection:
EPAfor manifold computation)
- continuous narrow phase collision detection:
- convex shape distance computation:
Not all of the functionality has been implemented yet, and the existing code is not fully covered by the testsuite. If you encounter any mistakes or omissions please let us know by posting an issue, or even better: send us a pull request with a fix.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Use CONTRIBUTING.md for futher information.
Pull requests are most welcome, especially in the realm of performance enhancements and fixing any mistakes. Unit tests and benchmarks are also required, so help on that front would be most appreciated.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.