Skip to main content

box3d_rust/manifold/
mod.rs

1//! Contact manifold generation for convex primitive pairs and mesh narrow phase.
2//!
3//! Port of `box3d-cpp-reference/src/convex_manifold.c` (sphere / capsule / hull
4//! pairs), `triangle_manifold.c`, plus the clip/edge helpers from
5//! `manifold.h` / `manifold.c`. Mesh contact assembly lives in `contact/mesh_contact.rs`.
6//!
7//! SPDX-FileCopyrightText: 2025 Erin Catto
8//! SPDX-License-Identifier: MIT
9
10mod capsules;
11mod clip;
12mod hull_capsule;
13mod hulls;
14mod sat;
15mod spheres;
16mod triangle;
17mod triangle_face;
18mod triangle_hull;
19mod types;
20
21pub use capsules::collide_capsules;
22pub use clip::{edge_edge_separation, find_incident_face, flip_pair};
23pub use hull_capsule::collide_hull_and_capsule;
24pub use hulls::collide_hulls;
25pub use spheres::{collide_capsule_and_sphere, collide_hull_and_sphere, collide_spheres};
26pub use triangle::{collide_capsule_and_triangle, collide_sphere_and_triangle};
27pub use triangle_hull::collide_hull_and_triangle;
28pub use types::{
29    make_feature_id, make_feature_pair, FeatureOwner, FeaturePair, LocalManifold,
30    LocalManifoldPoint, Manifold, ManifoldPoint, SatCache, SeparatingFeature, TriangleFeature,
31    FEATURE_PAIR_SINGLE,
32};