diff options
Diffstat (limited to 'src/dynamics/joint/spring_model.rs')
| -rw-r--r-- | src/dynamics/joint/spring_model.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dynamics/joint/spring_model.rs b/src/dynamics/joint/spring_model.rs index dd6035d..c2c9ebd 100644 --- a/src/dynamics/joint/spring_model.rs +++ b/src/dynamics/joint/spring_model.rs @@ -21,6 +21,12 @@ pub enum SpringModel { ForceBased, } +impl Default for SpringModel { + fn default() -> Self { + SpringModel::VelocityBased + } +} + impl SpringModel { /// Combines the coefficients used for solving the spring equation. /// |
