aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/joint/spherical_joint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynamics/joint/spherical_joint.rs')
-rw-r--r--src/dynamics/joint/spherical_joint.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dynamics/joint/spherical_joint.rs b/src/dynamics/joint/spherical_joint.rs
index 581b959..19fbd6f 100644
--- a/src/dynamics/joint/spherical_joint.rs
+++ b/src/dynamics/joint/spherical_joint.rs
@@ -7,7 +7,11 @@ use crate::math::{Point, Real};
pub struct SphericalJoint {
data: JointData,
}
-
+impl Default for SphericalJoint{
+ fn default() -> Self {
+ SphericalJoint::new()
+ }
+}
impl SphericalJoint {
pub fn new() -> Self {
let data =