aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-04-21 18:55:11 +0200
committerSébastien Crozet <sebastien@crozet.re>2024-04-30 23:10:46 +0200
commitf58b4f7c195ab7acf0778ea65c46ebf37ac8188c (patch)
tree16a5009b1decbf0395b93657b5c992b277bff8f9 /src/lib.rs
parentda79d6fb5b28dd12e17ef4c8985fb589a37c9f9c (diff)
downloadrapier-f58b4f7c195ab7acf0778ea65c46ebf37ac8188c.tar.gz
rapier-f58b4f7c195ab7acf0778ea65c46ebf37ac8188c.tar.bz2
rapier-f58b4f7c195ab7acf0778ea65c46ebf37ac8188c.zip
feat: add warmstarting to contact constraints resolution
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 304c0c0..9346b9e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -166,6 +166,9 @@ pub mod math {
#[cfg(feature = "dim2")]
pub type JacobianViewMut<'a, N> = na::MatrixViewMut3xX<'a, N>;
+ #[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 +198,9 @@ pub mod math {
#[cfg(feature = "dim3")]
pub type JacobianViewMut<'a, N> = na::MatrixViewMut6xX<'a, N>;
+ #[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;