Skip to content

Commit

Permalink
Merge pull request #618 from RulerOfCakes/fix-collider-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz authored Jan 1, 2025
2 parents c25fae6 + ae82d41 commit 3d0e4c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/geometry/collider_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,29 @@ impl Collider {
}

/// Initialize a new collider with a cylindrical shape defined by its half-height
/// (along along the y axis) and its radius.
/// (along the y axis) and its radius.
#[cfg(feature = "dim3")]
pub fn cylinder(half_height: Real, radius: Real) -> Self {
SharedShape::cylinder(half_height, radius).into()
}

/// Initialize a new collider with a rounded cylindrical shape defined by its half-height
/// (along along the y axis), its radius, and its roundedness (the
/// (along the y axis), its radius, and its roundedness (the
/// radius of the sphere used for dilating the cylinder).
#[cfg(feature = "dim3")]
pub fn round_cylinder(half_height: Real, radius: Real, border_radius: Real) -> Self {
SharedShape::round_cylinder(half_height, radius, border_radius).into()
}

/// Initialize a new collider with a cone shape defined by its half-height
/// (along along the y axis) and its basis radius.
/// (along the y axis) and its basis radius.
#[cfg(feature = "dim3")]
pub fn cone(half_height: Real, radius: Real) -> Self {
SharedShape::cone(half_height, radius).into()
}

/// Initialize a new collider with a rounded cone shape defined by its half-height
/// (along along the y axis), its radius, and its roundedness (the
/// (along the y axis), its radius, and its roundedness (the
/// radius of the sphere used for dilating the cylinder).
#[cfg(feature = "dim3")]
pub fn round_cone(half_height: Real, radius: Real, border_radius: Real) -> Self {
Expand Down

0 comments on commit 3d0e4c4

Please sign in to comment.