1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3
4#[cfg(any(
5 all(feature = "f32", feature = "f64"),
6 not(any(feature = "f32", feature = "f64"))
7))]
8compile_error!("rapier-cloth: select exactly one precision feature: f32 or f64");
9
10pub use rapier_cloth_core as core;
11pub use rapier_cloth_core::*;
12
13#[cfg(any(feature = "f32", feature = "f64"))]
14pub mod attachment;
15#[cfg(any(feature = "f32", feature = "f64"))]
16pub mod grasp;
17#[cfg(any(feature = "f32", feature = "f64"))]
18pub use grasp::{ClothSurfaceHit, ClothSurfacePoint, GraspOptions, GraspPatch};
19#[cfg(any(feature = "f32", feature = "f64"))]
20#[path = "collision.rs"]
21mod rapier_collision;
22#[cfg(any(feature = "f32", feature = "f64"))]
23pub use attachment::{
24 AttachmentDesc, AttachmentEvent, AttachmentEventKind, AttachmentHandle, AttachmentPoint,
25 SurfaceAttachmentDesc, SurfaceAttachmentPoint,
26};
27#[cfg(any(feature = "f32", feature = "f64"))]
28pub mod diagnostics;
29#[cfg(any(feature = "f32", feature = "f64"))]
30pub mod scene;
31#[cfg(any(feature = "f32", feature = "f64"))]
32pub mod world;
33#[cfg(any(feature = "f32", feature = "f64"))]
34pub use diagnostics::{IntegrationError, WorldStepReport};
35#[cfg(all(feature = "f32", not(feature = "f64")))]
36pub use rapier_f32 as rapier;
37#[cfg(feature = "f64")]
38pub use rapier_f64 as rapier;
39#[cfg(any(feature = "f32", feature = "f64"))]
40pub use scene::{RapierScene, SceneSnapshot, WorldId};
41#[cfg(any(feature = "f32", feature = "f64"))]
42pub use world::{ClothCheckpoint, CollisionSettings, RapierClothWorld};
43
44pub mod prelude {
45 pub use crate::{Cloth, ClothMaterial, ClothMesh, GridBuilder, Real, SolverSettings, Vec3};
46 #[cfg(any(feature = "f32", feature = "f64"))]
47 pub use crate::{RapierClothWorld, RapierScene, SceneSnapshot, WorldId};
48}