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, 6 insertions, 0 deletions
diff --git a/src/dynamics/joint/spherical_joint.rs b/src/dynamics/joint/spherical_joint.rs
index 581b959..194682d 100644
--- a/src/dynamics/joint/spherical_joint.rs
+++ b/src/dynamics/joint/spherical_joint.rs
@@ -8,6 +8,12 @@ pub struct SphericalJoint {
data: JointData,
}
+impl Default for SphericalJoint {
+ fn default() -> Self {
+ SphericalJoint::new()
+ }
+}
+
impl SphericalJoint {
pub fn new() -> Self {
let data =