aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/collider.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2020-10-20 18:14:20 +0200
committerCrozet Sébastien <developer@crozet.re>2020-10-20 18:14:20 +0200
commitf7a6f433d62ea427f6e2233365a6f534ca7e1c63 (patch)
treea54b68e92bfdc2154cdd94d1404e4bceee4f8a55 /src/geometry/collider.rs
parent949e3f5384a366c3bff5415c5db4635e811a580e (diff)
downloadrapier-f7a6f433d62ea427f6e2233365a6f534ca7e1c63.tar.gz
rapier-f7a6f433d62ea427f6e2233365a6f534ca7e1c63.tar.bz2
rapier-f7a6f433d62ea427f6e2233365a6f534ca7e1c63.zip
Rename rounded -> round.
Diffstat (limited to 'src/geometry/collider.rs')
-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 4785d62..755ae5a 100644
--- a/src/geometry/collider.rs
+++ b/src/geometry/collider.rs
@@ -39,7 +39,7 @@ 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 rounded_cylinder(half_height: f32, radius: f32, rounding_radius: f32) -> Self {
+ pub fn round_cylinder(half_height: f32, radius: f32, rounding_radius: f32) -> Self {
ColliderShape(Arc::new(Rounded::new(
Cylinder::new(half_height, radius),
rounding_radius,
@@ -164,7 +164,7 @@ impl<'de> serde::Deserialize<'de> for ColliderShape {
#[cfg(feature = "dim3")]
Some(ShapeType::Cone) => deser::<A, Cone>(&mut seq)?,
#[cfg(feature = "dim3")]
- Some(ShapeType::RoundedCylinder) => deser::<A, Rounded<Cylinder>>(&mut seq)?,
+ Some(ShapeType::RoundCylinder) => deser::<A, Rounded<Cylinder>>(&mut seq)?,
None => {
return Err(serde::de::Error::custom(
"found invalid shape type to deserialize",
@@ -326,8 +326,8 @@ 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 rounded_cylinder(half_height: f32, radius: f32, rounding_radius: f32) -> Self {
- Self::new(ColliderShape::rounded_cylinder(
+ pub fn round_cylinder(half_height: f32, radius: f32, rounding_radius: f32) -> Self {
+ Self::new(ColliderShape::round_cylinder(
half_height,
radius,
rounding_radius,