diff options
| author | Thierry Berger <contact@thierryberger.com> | 2024-06-03 15:20:24 +0200 |
|---|---|---|
| committer | Thierry Berger <contact@thierryberger.com> | 2024-06-03 15:20:24 +0200 |
| commit | e1ed90603e618e28f48916690d761e0d8213e2ad (patch) | |
| tree | 8399da9825ca9ee8edd601b1265e818fa303b541 /src/lib.rs | |
| parent | fe336b9b98d5825544ad3a153a84cb59dc9171c6 (diff) | |
| parent | 856675032e76b6eb4bc9e0be4dc87abdbcfe0421 (diff) | |
| download | rapier-e1ed90603e618e28f48916690d761e0d8213e2ad.tar.gz rapier-e1ed90603e618e28f48916690d761e0d8213e2ad.tar.bz2 rapier-e1ed90603e618e28f48916690d761e0d8213e2ad.zip | |
Merge branch 'master' into collider-builder-debug
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -15,6 +15,7 @@ #![allow(clippy::too_many_arguments)] #![allow(clippy::needless_range_loop)] // TODO: remove this? I find that in the math code using indices adds clarity. #![allow(clippy::module_inception)] +#![allow(unexpected_cfgs)] // This happens due to the dim2/dim3/f32/f64 cfg. #[cfg(all(feature = "dim2", feature = "f32"))] pub extern crate parry2d as parry; @@ -166,6 +167,10 @@ pub mod math { #[cfg(feature = "dim2")] pub type JacobianViewMut<'a, N> = na::MatrixViewMut3xX<'a, N>; + /// The type of impulse applied for friction constraints. + #[cfg(feature = "dim2")] + pub type TangentImpulse<N> = na::Vector1<N>; + /// The maximum number of possible rotations and translations of a rigid body. #[cfg(feature = "dim2")] pub const SPATIAL_DIM: usize = 3; @@ -195,6 +200,10 @@ pub mod math { #[cfg(feature = "dim3")] pub type JacobianViewMut<'a, N> = na::MatrixViewMut6xX<'a, N>; + /// The type of impulse applied for friction constraints. + #[cfg(feature = "dim3")] + pub type TangentImpulse<N> = na::Vector2<N>; + /// The maximum number of possible rotations and translations of a rigid body. #[cfg(feature = "dim3")] pub const SPATIAL_DIM: usize = 6; |
