aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/joint/fixed_joint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynamics/joint/fixed_joint.rs')
-rw-r--r--src/dynamics/joint/fixed_joint.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dynamics/joint/fixed_joint.rs b/src/dynamics/joint/fixed_joint.rs
index 10c4d7e..6082938 100644
--- a/src/dynamics/joint/fixed_joint.rs
+++ b/src/dynamics/joint/fixed_joint.rs
@@ -6,7 +6,11 @@ use crate::math::{Isometry, Point, Real};
pub struct FixedJoint {
data: JointData,
}
-
+impl Default for FixedJoint{
+ fn default() -> Self {
+ FixedJoint::new()
+ }
+}
impl FixedJoint {
pub fn new() -> Self {
#[cfg(feature = "dim2")]