aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-07-04 15:04:06 +0200
committerSébastien Crozet <developer@crozet.re>2022-07-04 15:04:06 +0200
commit158308ad715d00f2c0f259b185bf0410395b1aac (patch)
tree243ea954686a15b125c453c357d58c3eb562c94a /src/dynamics
parent1121b07d523ea9441025f2b40574e2b6c2477a88 (diff)
downloadrapier-158308ad715d00f2c0f259b185bf0410395b1aac.tar.gz
rapier-158308ad715d00f2c0f259b185bf0410395b1aac.tar.bz2
rapier-158308ad715d00f2c0f259b185bf0410395b1aac.zip
Add hepler function for building a contact force event from a contact pair
Diffstat (limited to 'src/dynamics')
-rw-r--r--src/dynamics/joint/generic_joint.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/dynamics/joint/generic_joint.rs b/src/dynamics/joint/generic_joint.rs
index 1cf96cb..bb1598d 100644
--- a/src/dynamics/joint/generic_joint.rs
+++ b/src/dynamics/joint/generic_joint.rs
@@ -278,17 +278,6 @@ impl GenericJoint {
self
}
- /// Are contacts between the attached rigid-bodies enabled?
- pub fn contacts_enabled(&self) -> bool {
- self.contacts_enabled
- }
-
- /// Sets whether contacts between the attached rigid-bodies are enabled.
- pub fn set_contacts_enabled(&mut self, enabled: bool) -> &mut Self {
- self.contacts_enabled = enabled;
- self
- }
-
/// The principal (local X) axis of this joint, expressed in the first rigid-body’s local-space.
#[must_use]
pub fn local_axis1(&self) -> UnitVector<Real> {
@@ -337,6 +326,17 @@ impl GenericJoint {
self
}
+ /// Are contacts between the attached rigid-bodies enabled?
+ pub fn contacts_enabled(&self) -> bool {
+ self.contacts_enabled
+ }
+
+ /// Sets whether contacts between the attached rigid-bodies are enabled.
+ pub fn set_contacts_enabled(&mut self, enabled: bool) -> &mut Self {
+ self.contacts_enabled = enabled;
+ self
+ }
+
/// The joint limits along the specified axis.
#[must_use]
pub fn limits(&self, axis: JointAxis) -> Option<&JointLimits<Real>> {