add defaults for the several structs

This commit is contained in:
zhguchev
2022-01-11 14:56:26 +01:00
committed by Sébastien Crozet
parent 1608a1323e
commit 536122e080
12 changed files with 46 additions and 10 deletions

View File

@@ -33,6 +33,12 @@ impl ColliderPair {
}
}
impl Default for ColliderPair{
fn default() -> Self {
ColliderPair::zero()
}
}
/// An event emitted by the broad-phase.
pub enum BroadPhasePairEvent {
/// A potential new collision pair has been detected by the broad-phase.