Add prelude + use vectors for setting linvel/translation in builders

This commit is contained in:
Crozet Sébastien
2021-05-25 11:00:13 +02:00
parent 47139323e0
commit 1bef66fea9
93 changed files with 1528 additions and 1259 deletions

View File

@@ -149,3 +149,12 @@ pub mod math {
#[cfg(feature = "dim3")]
pub const MAX_MANIFOLD_POINTS: usize = 4;
}
/// Prelude containing the common types defined by Rapier.
pub mod prelude {
pub use crate::dynamics::*;
pub use crate::geometry::*;
pub use crate::math::*;
pub use crate::pipeline::*;
pub use na::{point, vector, DMatrix, DVector};
}