Merge pull request #589 from whatf0xx/collider-builder-debug

Derived Debug for ColliderBuilder
This commit is contained in:
Thierry Berger
2024-06-03 15:50:42 +02:00
committed by GitHub
3 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
- Add `Multibody::forward_kinematics_single_link` to run forward-kinematics to compute the new pose and jacobian of a - Add `Multibody::forward_kinematics_single_link` to run forward-kinematics to compute the new pose and jacobian of a
single link without mutating the multibody. This can take an optional displacement on generalized coordinates that are single link without mutating the multibody. This can take an optional displacement on generalized coordinates that are
taken into account during transform propagation. taken into account during transform propagation.
- Implement `Debug` for `ColliderBuilder`.
### Modified ### Modified

View File

@@ -487,7 +487,7 @@ impl Collider {
} }
/// A structure responsible for building a new collider. /// A structure responsible for building a new collider.
#[derive(Clone)] #[derive(Clone, Debug)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
#[must_use = "Builder functions return the updated builder"] #[must_use = "Builder functions return the updated builder"]
pub struct ColliderBuilder { pub struct ColliderBuilder {

View File

@@ -132,7 +132,7 @@ impl Default for ColliderBroadPhaseData {
/// The shape of a collider. /// The shape of a collider.
pub type ColliderShape = SharedShape; pub type ColliderShape = SharedShape;
#[derive(Clone, PartialEq)] #[derive(Clone, PartialEq, Debug)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))] #[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
/// The mass-properties of a collider. /// The mass-properties of a collider.
pub enum ColliderMassProps { pub enum ColliderMassProps {