Replace rounding -> round.
This commit is contained in:
@@ -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,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user