aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2023-09-09 12:56:35 +0200
committerGitHub <noreply@github.com>2023-09-09 12:56:35 +0200
commit32ffb3e1aa0bbd62bbd977e195aa6a769e8af61b (patch)
treeab306834d4be1b81e215f0307bc902dd5ca40ce9 /src/pipeline
parentb977d41e5b1268d76ef0bc66f3b48baaa47ec9a2 (diff)
parentb9b5b58f615a7e97dafa251b1f43e74e81b33fe0 (diff)
downloadrapier-32ffb3e1aa0bbd62bbd977e195aa6a769e8af61b.tar.gz
rapier-32ffb3e1aa0bbd62bbd977e195aa6a769e8af61b.tar.bz2
rapier-32ffb3e1aa0bbd62bbd977e195aa6a769e8af61b.zip
Merge pull request #521 from waywardmonkeys/expand-wrt
docs: Expand "wrt" to "with respect to".
Diffstat (limited to 'src/pipeline')
-rw-r--r--src/pipeline/physics_hooks.rs3
-rw-r--r--src/pipeline/physics_pipeline.rs4
-rw-r--r--src/pipeline/query_pipeline.rs2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/pipeline/physics_hooks.rs b/src/pipeline/physics_hooks.rs
index 4024237..a391808 100644
--- a/src/pipeline/physics_hooks.rs
+++ b/src/pipeline/physics_hooks.rs
@@ -95,7 +95,8 @@ impl<'a> ContactModificationContext<'a> {
CONTACT_CURRENTLY_FORBIDDEN => {
// Contacts are forbidden so we need to continue forbidding contacts
// until all the contacts are non-penetrating again. In that case, if
- // the contacts are OK wrt. the contact normal, then we can mark them as allowed.
+ // the contacts are OK with respect to the contact normal, then we can
+ // mark them as allowed.
if contact_is_ok && self.solver_contacts.iter().all(|c| c.dist > 0.0) {
*self.user_data = CONTACT_CURRENTLY_ALLOWED;
} else {
diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs
index 3a83e4c..7423296 100644
--- a/src/pipeline/physics_pipeline.rs
+++ b/src/pipeline/physics_pipeline.rs
@@ -630,8 +630,8 @@ impl PhysicsPipeline {
}
// Finally, make sure we update the world mass-properties of the rigid-bodies
- // that moved. Otherwise, users may end up applying forces wrt. an outdated
- // center of mass.
+ // that moved. Otherwise, users may end up applying forces with respect to an
+ // outdated center of mass.
// TODO: avoid updating the world mass properties twice (here, and
// at the beginning of the next timestep) for bodies that were
// not modified by the user in the mean time.
diff --git a/src/pipeline/query_pipeline.rs b/src/pipeline/query_pipeline.rs
index 27ec2fb..99ab964 100644
--- a/src/pipeline/query_pipeline.rs
+++ b/src/pipeline/query_pipeline.rs
@@ -706,7 +706,7 @@ impl QueryPipeline {
/// * `stop_at_penetration` - If the casted shape starts in a penetration state with any
/// collider, two results are possible. If `stop_at_penetration` is `true` then, the
/// result will have a `toi` equal to `start_time`. If `stop_at_penetration` is `false`
- /// then the nonlinear shape-casting will see if further motion wrt. the penetration normal
+ /// then the nonlinear shape-casting will see if further motion with respect to the penetration normal
/// would result in tunnelling. If it does not (i.e. we have a separating velocity along
/// that normal) then the nonlinear shape-casting will attempt to find another impact,
/// at a time `> start_time` that could result in tunnelling.