aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmil Ernerfeldt <emil.ernerfeldt@gmail.com>2021-03-08 10:04:13 +0100
committerGitHub <noreply@github.com>2021-03-08 10:04:13 +0100
commit51542331761e20fcc6ad6b9c11eaf3dad0ac9632 (patch)
tree18c67d7363cf50cd2188db39a80eedff29fd753c /src
parent018cc236398ef5f6bc2022d1c9b145d76cfc88a4 (diff)
downloadrapier-51542331761e20fcc6ad6b9c11eaf3dad0ac9632.tar.gz
rapier-51542331761e20fcc6ad6b9c11eaf3dad0ac9632.tar.bz2
rapier-51542331761e20fcc6ad6b9c11eaf3dad0ac9632.zip
docstring/spelling
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
Diffstat (limited to 'src')
-rw-r--r--src/geometry/collider.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs
index c8d421b..0d42a05 100644
--- a/src/geometry/collider.rs
+++ b/src/geometry/collider.rs
@@ -465,8 +465,9 @@ impl ColliderBuilder {
}
/// Sets whether or not the collider built by this builder is a sensor.
+ ///
/// Sensors will have a default density of zero,
- /// but if you call [`Self::mass_properties`] you can assigna a mass to a sensor.
+ /// but if you call [`Self::mass_properties`] you can assign a mass to a sensor.
pub fn sensor(mut self, is_sensor: bool) -> Self {
self.is_sensor = is_sensor;
self