Impl Default for a few structs

This commit is contained in:
Jamen Marz
2021-09-21 11:25:54 -06:00
committed by Sébastien Crozet
parent 936f655c67
commit 7aa94e994f
15 changed files with 60 additions and 6 deletions

View File

@@ -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 {