aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/joint
diff options
context:
space:
mode:
authorWaridley <Waridley64@gmail.com>2021-07-10 12:18:21 -0500
committerSébastien Crozet <sebastien@crozet.re>2021-07-11 18:22:39 +0200
commit9233a855f0fd13e61c475b32117838af95fb4c93 (patch)
tree06808125abc8628568b23d3077721556fb80fc5d /src/dynamics/joint
parent3b0d25646407e9b1d7e39dee1005d9a24e09ab66 (diff)
downloadrapier-9233a855f0fd13e61c475b32117838af95fb4c93.tar.gz
rapier-9233a855f0fd13e61c475b32117838af95fb4c93.tar.bz2
rapier-9233a855f0fd13e61c475b32117838af95fb4c93.zip
impl more traits for components
Diffstat (limited to 'src/dynamics/joint')
-rw-r--r--src/dynamics/joint/ball_joint.rs2
-rw-r--r--src/dynamics/joint/fixed_joint.rs2
-rw-r--r--src/dynamics/joint/generic_joint.rs2
-rw-r--r--src/dynamics/joint/joint.rs2
-rw-r--r--src/dynamics/joint/prismatic_joint.rs2
-rw-r--r--src/dynamics/joint/revolute_joint.rs2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/dynamics/joint/ball_joint.rs b/src/dynamics/joint/ball_joint.rs
index 01b0f7f..a323505 100644
--- a/src/dynamics/joint/ball_joint.rs
+++ b/src/dynamics/joint/ball_joint.rs
@@ -1,7 +1,7 @@
use crate::dynamics::SpringModel;
use crate::math::{Point, Real, Rotation, Vector};
-#[derive(Copy, Clone)]
+#[derive(Copy, Clone, PartialEq)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
/// A joint that removes all relative linear motion between a pair of points on two bodies.
pub struct BallJoint {
diff --git a/src/dynamics/joint/fixed_joint.rs b/src/dynamics/joint/fixed_joint.rs
index 3f87e8d..6424750 100644
--- a/src/dynamics/joint/fixed_joint.rs
+++ b/src/dynamics/joint/fixed_joint.rs
@@ -1,6 +1,6 @@
use crate::math::{Isometry, Real, SpacialVector};
-#[derive(Copy, Clone)]
+#[derive(Copy, Clone, PartialEq)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
/// A joint that prevents all relative movement between two bodies.
///
diff --git a/src/dynamics/joint/generic_joint.rs b/src/dynamics/joint/generic_joint.rs
index c1549ff..78f1e84 100644
--- a/src/dynamics/joint/generic_joint.rs
+++ b/src/dynamics/joint/generic_joint.rs
@@ -2,7 +2,7 @@ use crate::dynamics::{BallJoint, FixedJoint, PrismaticJoint, RevoluteJoint};
use crate::math::{Isometry, Real, SpacialVector};
use crate::na::{Rotation3, UnitQuaternion};
-#[derive(Copy, Clone, Debug)]
+#[derive(Copy, Clone, Debug, PartialEq)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
/// A joint that prevents all relative movement between two bodies.
///
diff --git a/src/dynamics/joint/joint.rs b/src/dynamics/joint/joint.rs
index e0a9d38..0c2c864 100644
--- a/src/dynamics/joint/joint.rs
+++ b/src/dynamics/joint/joint.rs
@@ -2,7 +2,7 @@
use crate::dynamics::RevoluteJoint;
use crate::dynamics::{BallJoint, FixedJoint, JointHandle, PrismaticJoint, RigidBodyHandle};
-#[derive(Copy, Clone)]
+#[derive(Copy, Clone, PartialEq)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
/// An enum grouping all possible types of joints.
pub enum JointParams {
diff --git a/src/dynamics/joint/prismatic_joint.rs b/src/dynamics/joint/prismatic_joint.rs
index 3736b7f..0dbdf02 100644
--- a/src/dynamics/joint/prismatic_joint.rs
+++ b/src/dynamics/joint/prismatic_joint.rs
@@ -7,7 +7,7 @@ use na::Vector2;
#[cfg(feature = "dim3")]
use na::Vector5;
-#[derive(Copy, Clone)]
+#[derive(Copy, Clone, PartialEq)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
/// A joint that removes all relative motion between two bodies, except for the translations along one axis.
pub struct PrismaticJoint {
diff --git a/src/dynamics/joint/revolute_joint.rs b/src/dynamics/joint/revolute_joint.rs
index d1181e9..d6b030d 100644
--- a/src/dynamics/joint/revolute_joint.rs
+++ b/src/dynamics/joint/revolute_joint.rs
@@ -3,7 +3,7 @@ use crate::math::{Isometry, Point, Real, Vector};
use crate::utils::WBasis;
use na::{RealField, Unit, Vector5};
-#[derive(Copy, Clone)]
+#[derive(Copy, Clone, PartialEq)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
/// A joint that removes all relative motion between two bodies, except for the rotations along one axis.
pub struct RevoluteJoint {