Skip to main content

collider_shape/
lib.rs

1//! # **`collider-shape`**: geometric shapes for collision detection
2//!
3//! `collider-shape` is a sub-crate of the `collider` library, providing
4//! definitions and implementations of geometric shapes used in collision detection.
5//!
6//! ## Overview
7//! A shape is a primitive that represents the properties of a 3D geometric object.
8//! Note that a shape does not contain any information about the position
9//! or orientation of the object, only its geometric properties.
10
11pub use capsule::*;
12pub use cone::*;
13pub use cuboid::*;
14pub use cylinder::*;
15pub use sphere::*;
16
17pub use shape::*;
18
19pub mod shape;
20
21pub mod capsule;
22pub mod cone;
23pub mod cuboid;
24pub mod cylinder;
25pub mod sphere;
26
27#[cfg(feature = "python")]
28pub mod py_shape;
29
30#[cfg(feature = "python")]
31pub mod py_capsule;
32#[cfg(feature = "python")]
33pub mod py_cone;
34#[cfg(feature = "python")]
35pub mod py_cuboid;
36#[cfg(feature = "python")]
37pub mod py_cylinder;
38#[cfg(feature = "python")]
39pub mod py_sphere;