Skip to main content

phyz_model/
lib.rs

1//! Model and state types for phyz physics engine.
2//!
3//! `Model` is the static description of a physical system (topology, masses, joint types).
4//! `State` is the mutable simulation state (positions, velocities, forces).
5
6#![warn(missing_docs)]
7
8// Compile the crate README's Rust blocks as doc-tests so the documented API
9// cannot drift from the real one. `cfg(doctest)` keeps it out of rendered docs.
10#[cfg(doctest)]
11#[doc = include_str!("../README.md")]
12pub struct ReadmeDocTests;
13
14pub mod body;
15pub mod heightfield;
16pub mod joint;
17pub mod material;
18pub mod model;
19pub mod state;
20pub mod validate;
21
22pub use body::{Attachment, Body, GeomInstance, Geometry};
23pub use heightfield::Heightfield;
24pub use joint::{Joint, JointType};
25pub use material::{ContactMaterial, SolImp, SolRef};
26pub use model::{Actuator, Model, ModelBuilder};
27pub use state::State;
28pub use validate::Issue;