Compare commits
2 Commits
90edce16f9
...
fbdd8565d1
Author | SHA1 | Date | |
---|---|---|---|
fbdd8565d1 | |||
a7651ab240 |
@ -655,7 +655,6 @@ pub mod ship {
|
|||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("{:?}", e);
|
println!("{:?}", e);
|
||||||
// println!("{:?}", e.provide());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(true)
|
Ok(true)
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user