docs: Fix minor typos and tweaks (#696)

---------

Co-authored-by: Thierry Berger <contact@thierryberger.com>
This commit is contained in:
Bruce Mitchener
2024-07-22 16:32:08 +07:00
committed by GitHub
parent cf74150763
commit 7374653338
7 changed files with 23 additions and 23 deletions

View File

@@ -398,7 +398,7 @@ impl CCDSolver {
let start_time = toi.toi;
// NOTE: the 1 and 2 indices (e.g., `ch1`, `ch2`) bellow are unrelated to the
// NOTE: the 1 and 2 indices (e.g., `ch1`, `ch2`) below are unrelated to the
// ones we used above.
for ch1 in &colliders_to_check {
let co1 = &colliders[*ch1];

View File

@@ -1000,12 +1000,12 @@ impl RigidBodyDominance {
#[derive(Copy, Clone, Debug, PartialEq)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
pub struct RigidBodyActivation {
/// The threshold linear velocity bellow which the body can fall asleep.
/// The threshold linear velocity below which the body can fall asleep.
///
/// The value is "normalized", i.e., the actual threshold applied by the physics engine
/// is equal to this value multiplied by [`IntegrationParameters::length_unit`].
pub normalized_linear_threshold: Real,
/// The angular linear velocity bellow which the body can fall asleep.
/// The angular linear velocity below which the body can fall asleep.
pub angular_threshold: Real,
/// The amount of time the rigid-body must remain below the thresholds to be put to sleep.
pub time_until_sleep: Real,
@@ -1022,17 +1022,17 @@ impl Default for RigidBodyActivation {
}
impl RigidBodyActivation {
/// The default linear velocity bellow which a body can be put to sleep.
/// The default linear velocity below which a body can be put to sleep.
pub fn default_normalized_linear_threshold() -> Real {
0.4
}
/// The default angular velocity bellow which a body can be put to sleep.
/// The default angular velocity below which a body can be put to sleep.
pub fn default_angular_threshold() -> Real {
0.5
}
/// The amount of time the rigid-body must remain bellow its linear and angular velocity
/// The amount of time the rigid-body must remain below its linear and angular velocity
/// threshold before falling to sleep.
pub fn default_time_until_sleep() -> Real {
2.0