aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2024-05-05 16:41:38 +0630
committerGitHub <noreply@github.com>2024-05-05 12:11:38 +0200
commit7375a691e232bb59033980dc09c7179bc16e377f (patch)
tree1713a55a9c8a4199292c4668c950404ba1e033c1 /src/dynamics
parent1b05b2ebfac63034d3dd14a7a5b9b87c59377529 (diff)
downloadrapier-7375a691e232bb59033980dc09c7179bc16e377f.tar.gz
rapier-7375a691e232bb59033980dc09c7179bc16e377f.tar.bz2
rapier-7375a691e232bb59033980dc09c7179bc16e377f.zip
Fix some typos. (#620)
Diffstat (limited to 'src/dynamics')
-rw-r--r--src/dynamics/rigid_body.rs2
-rw-r--r--src/dynamics/rigid_body_components.rs2
-rw-r--r--src/dynamics/rigid_body_set.rs2
-rw-r--r--src/dynamics/solver/solver_constraints_set.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs
index 7f95a31..b822aa9 100644
--- a/src/dynamics/rigid_body.rs
+++ b/src/dynamics/rigid_body.rs
@@ -443,7 +443,7 @@ impl RigidBody {
self.ccd.ccd_enabled = enabled;
}
- /// Is CCD (continous collision-detection) enabled for this rigid-body?
+ /// Is CCD (continuous collision-detection) enabled for this rigid-body?
pub fn is_ccd_enabled(&self) -> bool {
self.ccd.ccd_enabled
}
diff --git a/src/dynamics/rigid_body_components.rs b/src/dynamics/rigid_body_components.rs
index f5698a4..a391feb 100644
--- a/src/dynamics/rigid_body_components.rs
+++ b/src/dynamics/rigid_body_components.rs
@@ -595,7 +595,7 @@ impl RigidBodyVelocity {
}
/// Integrate the velocities in `self` to compute obtain new positions when moving from the given
- /// inital position `init_pos`.
+ /// initial position `init_pos`.
#[must_use]
pub fn integrate(
&self,
diff --git a/src/dynamics/rigid_body_set.rs b/src/dynamics/rigid_body_set.rs
index 2356364..a7d2ec3 100644
--- a/src/dynamics/rigid_body_set.rs
+++ b/src/dynamics/rigid_body_set.rs
@@ -209,7 +209,7 @@ impl RigidBodySet {
/// Update colliders positions after rigid-bodies moved.
///
/// When a rigid-body moves, the positions of the colliders attached to it need to be updated.
- /// This update is generally automatically done at the beggining and the end of each simulation
+ /// This update is generally automatically done at the beginning and the end of each simulation
/// step with `PhysicsPipeline::step`. If the positions need to be updated without running a
/// simulation step (for example when using the `QueryPipeline` alone), this method can be called
/// manually.
diff --git a/src/dynamics/solver/solver_constraints_set.rs b/src/dynamics/solver/solver_constraints_set.rs
index 4259098..1161c55 100644
--- a/src/dynamics/solver/solver_constraints_set.rs
+++ b/src/dynamics/solver/solver_constraints_set.rs
@@ -96,7 +96,7 @@ impl<Constraints: ConstraintTypes> SolverConstraintsSet<Constraints> {
}
}
- #[allow(dead_code)] // Useful for debuging.
+ #[allow(dead_code)] // Useful for debugging.
pub fn print_counts(&self) {
println!("Solver constraints:");
println!(