diff options
Diffstat (limited to 'src/dynamics')
| -rw-r--r-- | src/dynamics/joint/generic_joint.rs | 22 |
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>> { |
