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

@@ -6,7 +6,11 @@ use crate::math::{Isometry, Point, Real};
pub struct FixedJoint {
data: JointData,
}
impl Default for FixedJoint{
fn default() -> Self {
FixedJoint::new()
}
}
impl FixedJoint {
pub fn new() -> Self {
#[cfg(feature = "dim2")]