Compare commits

...

2 Commits

Author SHA1 Message Date
fbdd8565d1
试试再说 2023-09-13 00:25:02 +08:00
a7651ab240
这里还能水一点来着( 2023-09-13 00:22:51 +08:00
2 changed files with 8 additions and 3 deletions

View File

@ -655,7 +655,6 @@ pub mod ship {
} }
Err(e) => { Err(e) => {
println!("{:?}", e); println!("{:?}", e);
// println!("{:?}", e.provide());
} }
} }
Ok(true) Ok(true)

View File

@ -1303,6 +1303,7 @@ pub mod dr {
/// 由一系列高度定义的某种东西,大概是地面之类的 /// 由一系列高度定义的某种东西,大概是地面之类的
Heightfield(Vec<(Real, Real)>), Heightfield(Vec<(Real, Real)>),
/// 凸分解的复合形状 /// 凸分解的复合形状
/// 就是不知道能不能真用上
Compound(Vec<(Isometry<Real>, SharedShape)>), //凸分解,好像可以略微提升复杂刚体碰撞的性能 Compound(Vec<(Isometry<Real>, SharedShape)>), //凸分解,好像可以略微提升复杂刚体碰撞的性能
} }
@ -1316,12 +1317,17 @@ pub mod dr {
} }
pub struct EngineData { pub struct EngineData {
/// 推力大小if p_type==engine
pub power: f64, pub power: f64,
/// 消耗速率if p_type==engine
pub consumption: f64, pub consumption: f64,
pub size: f64, /// 大小if p_type==engine
// pub size: f64,
/// 转向范围if p_type==engine
pub turn: f64, pub turn: f64,
/// 燃料类型if p_type==engine
pub fuel_type: f64, pub fuel_type: f64,
pub throttle_exponential: f64, // pub throttle_exponential: f64,
} }
pub trait DRPartTypeAttrTrait { pub trait DRPartTypeAttrTrait {