Replace rounding -> round.

This commit is contained in:
Crozet Sébastien
2020-10-20 18:57:53 +02:00
parent f7a6f433d6
commit b9156302d3

View File

@@ -39,10 +39,10 @@ impl ColliderShape {
/// (along along the y axis), its radius, and its roundedness (the /// (along along the y axis), its radius, and its roundedness (the
/// radius of the sphere used for dilating the cylinder). /// radius of the sphere used for dilating the cylinder).
#[cfg(feature = "dim3")] #[cfg(feature = "dim3")]
pub fn round_cylinder(half_height: f32, radius: f32, rounding_radius: f32) -> Self { pub fn round_cylinder(half_height: f32, radius: f32, round_radius: f32) -> Self {
ColliderShape(Arc::new(Rounded::new( ColliderShape(Arc::new(Rounded::new(
Cylinder::new(half_height, radius), Cylinder::new(half_height, radius),
rounding_radius, round_radius,
))) )))
} }
@@ -326,11 +326,11 @@ impl ColliderBuilder {
/// (along along the y axis), its radius, and its roundedness (the /// (along along the y axis), its radius, and its roundedness (the
/// radius of the sphere used for dilating the cylinder). /// radius of the sphere used for dilating the cylinder).
#[cfg(feature = "dim3")] #[cfg(feature = "dim3")]
pub fn round_cylinder(half_height: f32, radius: f32, rounding_radius: f32) -> Self { pub fn round_cylinder(half_height: f32, radius: f32, round_radius: f32) -> Self {
Self::new(ColliderShape::round_cylinder( Self::new(ColliderShape::round_cylinder(
half_height, half_height,
radius, radius,
rounding_radius, round_radius,
)) ))
} }