aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-03-23 10:36:07 +0100
committerSébastien Crozet <sebastien@crozet.re>2024-03-23 10:50:02 +0100
commit3020d442ea518c957ca094a79bd0e134f906d363 (patch)
treecd75a302cdd8e74f01324da13f990914d61a8e28 /src
parent3fd18f4da8476a29945fa6f0c49e0af08d1f7363 (diff)
downloadrapier-3020d442ea518c957ca094a79bd0e134f906d363.tar.gz
rapier-3020d442ea518c957ca094a79bd0e134f906d363.tar.bz2
rapier-3020d442ea518c957ca094a79bd0e134f906d363.zip
chore: minor comment fix
Diffstat (limited to 'src')
-rw-r--r--src/pipeline/user_changes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipeline/user_changes.rs b/src/pipeline/user_changes.rs
index 9aa93a5..a2b00a1 100644
--- a/src/pipeline/user_changes.rs
+++ b/src/pipeline/user_changes.rs
@@ -120,8 +120,8 @@ pub(crate) fn handle_user_changes_to_rigid_bodies(
islands.active_kinematic_set.push(*handle);
}
- // Push the body to the active set if it is not
- // sleeping and if it is not already inside of the active set, or if type changed to dynamic.
+ // Push the body to the active set if it is not inside the active set yet, and
+ // is either not longer sleeping or became dynamic.
if (changes.contains(RigidBodyChanges::SLEEP) || changes.contains(RigidBodyChanges::TYPE))
&& rb.is_enabled()
&& !rb.activation.sleeping // May happen if the body was put to sleep manually.