diff options
Diffstat (limited to 'src/geometry')
| -rw-r--r-- | src/geometry/collider.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index 565d6e2..c58548e 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -16,7 +16,7 @@ use parry::shape::{Shape, TriMeshFlags}; use crate::geometry::HeightFieldFlags; #[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))] -#[derive(Clone)] +#[derive(Clone, Debug)] /// A geometric entity that can be attached to a body so it can be affected by contacts and proximity queries. /// /// To build a new collider, use the [`ColliderBuilder`] structure. @@ -527,6 +527,12 @@ pub struct ColliderBuilder { pub contact_skin: Real, } +impl Default for ColliderBuilder { + fn default() -> Self { + Self::ball(0.5) + } +} + impl ColliderBuilder { /// Initialize a new collider builder with the given shape. pub fn new(shape: SharedShape) -> Self { |
