chore: minor comment fix
This commit is contained in:
committed by
Sébastien Crozet
parent
3fd18f4da8
commit
3020d442ea
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user