Skip to main content

box3d_rust/body/
mod.rs

1//! Rigid bodies: create, destroy, and configure simulation state.
2//!
3//! Use [`create_body`] with a [`crate::types::BodyDef`] (from
4//! [`crate::types::default_body_def`]) to add a body to a [`crate::world::World`].
5//! Attach collision with [`crate::shape`], then apply forces / set transforms
6//! through the accessors in this module.
7//!
8//! Port of `body.h` / `body.c` (lifecycle, mass, velocity, and query API).
9//!
10//! SPDX-FileCopyrightText: 2025 Erin Catto
11//! SPDX-License-Identifier: MIT
12
13mod access;
14mod api;
15mod forces;
16mod lifecycle;
17mod mass;
18mod query;
19mod set_type;
20mod types;
21
22pub use access::*;
23pub use api::*;
24pub use forces::*;
25pub use lifecycle::*;
26pub use mass::*;
27pub use query::*;
28pub use set_type::*;
29pub use types::*;