Skip to main content

he3d_physics/
lib.rs

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