Skip to main content

Crate box2d_rust

Crate box2d_rust 

Source
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.