aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/joint/prismatic_joint.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2021-08-07 14:29:11 +0200
committerSébastien Crozet <sebastien@crozet.re>2021-08-08 18:38:12 +0200
commitac77c95c9c161948433ce3a05bab1f2e9fe32f61 (patch)
tree49534415b85ceaf0ab27be0d2f1a9ed394fc441e /src/dynamics/joint/prismatic_joint.rs
parentfd778b607f019e8d9e2ea733fab377d98a14619c (diff)
downloadrapier-ac77c95c9c161948433ce3a05bab1f2e9fe32f61.tar.gz
rapier-ac77c95c9c161948433ce3a05bab1f2e9fe32f61.tar.bz2
rapier-ac77c95c9c161948433ce3a05bab1f2e9fe32f61.zip
Implement limits for revolute joints.
Diffstat (limited to 'src/dynamics/joint/prismatic_joint.rs')
-rw-r--r--src/dynamics/joint/prismatic_joint.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dynamics/joint/prismatic_joint.rs b/src/dynamics/joint/prismatic_joint.rs
index 0dbdf02..69edcb7 100644
--- a/src/dynamics/joint/prismatic_joint.rs
+++ b/src/dynamics/joint/prismatic_joint.rs
@@ -19,6 +19,7 @@ pub struct PrismaticJoint {
pub(crate) local_axis2: Unit<Vector<Real>>,
pub(crate) basis1: [Vector<Real>; DIM - 1],
pub(crate) basis2: [Vector<Real>; DIM - 1],
+
/// The impulse applied by this joint on the first body.
///
/// The impulse applied to the second body is given by `-impulse`.
@@ -29,6 +30,7 @@ pub struct PrismaticJoint {
/// The impulse applied to the second body is given by `-impulse`.
#[cfg(feature = "dim2")]
pub impulse: Vector2<Real>,
+
/// Whether or not this joint should enforce translational limits along its axis.
pub limits_enabled: bool,
/// The min an max relative position of the attached bodies along this joint's axis.