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

@@ -29,6 +29,12 @@ pub struct JointGenericVelocityConstraint {
pub writeback_id: WritebackId,
}
impl Default for JointGenericVelocityConstraint {
fn default() -> Self {
JointGenericVelocityConstraint::invalid()
}
}
impl JointGenericVelocityConstraint {
pub fn invalid() -> Self {
Self {
@@ -313,6 +319,11 @@ pub struct JointGenericVelocityGroundConstraint {
pub writeback_id: WritebackId,
}
impl Default for JointGenericVelocityGroundConstraint{
fn default() -> Self {
JointGenericVelocityGroundConstraint::invalid()
}
}
impl JointGenericVelocityGroundConstraint {
pub fn invalid() -> Self {