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

@@ -116,6 +116,12 @@ pub struct BroadPhase {
reporting: HashMap<(u32, u32), bool>, // Workspace
}
impl Default for BroadPhase {
fn default() -> Self {
Self::new()
}
}
impl BroadPhase {
/// Create a new empty broad-phase.
pub fn new() -> Self {

View File

@@ -87,6 +87,12 @@ pub struct SAPProxies {
pub first_free: SAPProxyIndex,
}
impl Default for SAPProxies {
fn default() -> Self {
Self::new()
}
}
impl SAPProxies {
pub fn new() -> Self {
Self {