diff options
| author | zhguchev <zhguchev@arrival.com> | 2022-01-11 14:56:26 +0100 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2022-01-23 18:01:50 +0100 |
| commit | 536122e08066c762a0f6a1585c458f6c7a54bc2e (patch) | |
| tree | 2cb19ed51bc0880b7de0815e25143c798c41438f /src/dynamics/joint/spherical_joint.rs | |
| parent | 1608a1323ed76cdf33644cfea599cea715acf7a9 (diff) | |
| download | rapier-536122e08066c762a0f6a1585c458f6c7a54bc2e.tar.gz rapier-536122e08066c762a0f6a1585c458f6c7a54bc2e.tar.bz2 rapier-536122e08066c762a0f6a1585c458f6c7a54bc2e.zip | |
add defaults for the several structs
Diffstat (limited to 'src/dynamics/joint/spherical_joint.rs')
| -rw-r--r-- | src/dynamics/joint/spherical_joint.rs | 6 |
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 = |
