he3d_physics/lib.rs
1#![cfg_attr(not(feature = "std"), no_std)]
2
3//! HE3D physics.
4//! HE3D 物理模块。
5//!
6//! A thin [`PhysicsWorld`] adapter over the standalone [`gp3d`] engine, mapping
7//! render objects by stable [`ObjectId`] onto gp3d's generational body handles.
8//! 一个建立在独立 [`gp3d`] 引擎之上的薄 [`PhysicsWorld`] 适配层,通过稳定的
9//! [`ObjectId`] 将渲染对象映射到 gp3d 的代际刚体句柄上。
10//! Bodies are owned by gp3d; after each [`PhysicsWorld::step`] the caller synchronizes
11//! transforms back into the [`Scene`].
12//! 刚体由 gp3d 持有;每次 [`PhysicsWorld::step`] 之后,调用方将变换同步回 [`Scene`]。
13
14extern crate alloc;
15
16mod world;
17
18pub use world::PhysicsWorld;
19pub use gp3d::StepResult;