Expand description
Pure Rust port of Box2D v3, Erin Catto’s 2D physics engine. The port matches the C implementation’s behavior exactly, including its cross-platform deterministic math.
Ported module by module from the pinned C reference in box2d-cpp-reference/.
Re-exports§
pub use collision::CastOutput;pub use core::get_version;pub use core::is_double_precision;pub use core::Version;pub use id::BodyId;pub use id::ChainId;pub use id::ContactId;pub use id::JointId;pub use id::ShapeId;pub use id::WorldId;pub use math_functions::Aabb;pub use math_functions::CosSin;pub use math_functions::Mat22;pub use math_functions::Plane;pub use math_functions::Pos;pub use math_functions::Rot;pub use math_functions::Transform;pub use math_functions::Vec2;pub use math_functions::WorldTransform;
Modules§
- aabb
- bitset
- body
- broad_
phase - collision
- constants
- constraint_
graph - contact
- contact_
solver - core
- debug_
draw - distance
- distance_
joint - dynamic_
tree - events
- geometry
- hull
- id
- id_pool
- island
- joint
- manifold
- math_
functions - motor_
joint - mover
- prismatic_
joint - recording
- revolute_
joint - sensor
- shape
- solver
- solver_
set - table
- types
- weld_
joint - wheel_
joint - world
Constants§
- VERSION
- Library version, kept in sync with Cargo.toml.