diff options
Diffstat (limited to 'src/dynamics/solver/interaction_groups.rs')
| -rw-r--r-- | src/dynamics/solver/interaction_groups.rs | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/dynamics/solver/interaction_groups.rs b/src/dynamics/solver/interaction_groups.rs index 7f49ec3..451f930 100644 --- a/src/dynamics/solver/interaction_groups.rs +++ b/src/dynamics/solver/interaction_groups.rs @@ -1,14 +1,17 @@ use crate::data::ComponentSet; -#[cfg(feature = "parallel")] -use crate::dynamics::RigidBodyHandle; -use crate::dynamics::{IslandManager, JointGraphEdge, JointIndex, MultibodyJointSet, RigidBodyIds}; +use crate::dynamics::{IslandManager, JointGraphEdge, JointIndex, RigidBodyIds}; use crate::geometry::{ContactManifold, ContactManifoldIndex}; + #[cfg(feature = "simd-is-enabled")] use { crate::data::BundleSet, crate::math::{SIMD_LAST_INDEX, SIMD_WIDTH}, vec_map::VecMap, }; + +#[cfg(feature = "parallel")] +use crate::dynamics::{MultibodyJointSet, RigidBodyHandle}; + #[cfg(feature = "parallel")] pub(crate) trait PairInteraction { fn body_pair(&self) -> (Option<RigidBodyHandle>, Option<RigidBodyHandle>); @@ -195,16 +198,16 @@ impl InteractionGroups { } } - #[cfg(not(feature = "parallel"))] - pub fn clear(&mut self) { - #[cfg(feature = "simd-is-enabled")] - { - self.buckets.clear(); - self.body_masks.clear(); - self.grouped_interactions.clear(); - } - self.nongrouped_interactions.clear(); - } + // #[cfg(not(feature = "parallel"))] + // pub fn clear(&mut self) { + // #[cfg(feature = "simd-is-enabled")] + // { + // self.buckets.clear(); + // self.body_masks.clear(); + // self.grouped_interactions.clear(); + // } + // self.nongrouped_interactions.clear(); + // } // TODO: there is a lot of duplicated code with group_manifolds here. // But we don't refactor just now because we may end up with distinct |
