aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/geometry/collider.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs
index 755ae5a..838dda2 100644
--- a/src/geometry/collider.rs
+++ b/src/geometry/collider.rs
@@ -39,10 +39,10 @@ impl ColliderShape {
/// (along 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: 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(
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
/// radius of the sphere used for dilating the cylinder).
#[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(
half_height,
radius,
- rounding_radius,
+ round_radius,
))
}