From 7375a691e232bb59033980dc09c7179bc16e377f Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sun, 5 May 2024 16:41:38 +0630 Subject: Fix some typos. (#620) --- src/dynamics/rigid_body.rs | 2 +- src/dynamics/rigid_body_components.rs | 2 +- src/dynamics/rigid_body_set.rs | 2 +- src/dynamics/solver/solver_constraints_set.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dynamics') 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 SolverConstraintsSet { } } - #[allow(dead_code)] // Useful for debuging. + #[allow(dead_code)] // Useful for debugging. pub fn print_counts(&self) { println!("Solver constraints:"); println!( -- cgit