diff options
| author | Jamen Marz <me@jamen.dev> | 2021-09-21 11:25:54 -0600 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2021-09-25 13:50:12 +0200 |
| commit | 7aa94e994f27a27fb193cff9a13b2a3beae09a83 (patch) | |
| tree | c72ad89fbe2a36b72e719f19899a444a8ba1d17c /src/geometry/narrow_phase.rs | |
| parent | 936f655c67f03d6eae6c2c9fc2ad0647b54d74b7 (diff) | |
| download | rapier-7aa94e994f27a27fb193cff9a13b2a3beae09a83.tar.gz rapier-7aa94e994f27a27fb193cff9a13b2a3beae09a83.tar.bz2 rapier-7aa94e994f27a27fb193cff9a13b2a3beae09a83.zip | |
Impl Default for a few structs
Diffstat (limited to 'src/geometry/narrow_phase.rs')
| -rw-r--r-- | src/geometry/narrow_phase.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/geometry/narrow_phase.rs b/src/geometry/narrow_phase.rs index 18900b9..adaf219 100644 --- a/src/geometry/narrow_phase.rs +++ b/src/geometry/narrow_phase.rs @@ -62,6 +62,12 @@ pub struct NarrowPhase { pub(crate) type ContactManifoldIndex = usize; +impl Default for NarrowPhase { + fn default() -> Self { + Self::new() + } +} + impl NarrowPhase { /// Creates a new empty narrow-phase. pub fn new() -> Self { |
