Skip to content

Commit

Permalink
refactor: Change name to JointDisabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanecelis committed Sep 22, 2024
1 parent 3b2054d commit 4387ebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dynamics/solver/joints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,4 @@ impl AngleLimit {
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serialize", reflect(Serialize, Deserialize))]
#[reflect(Debug, Component)]
pub struct DisableJoint;
pub struct JointDisabled;
2 changes: 1 addition & 1 deletion src/dynamics/solver/xpbd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ pub trait XpbdConstraint<const ENTITY_COUNT: usize>: MapEntities {
pub fn solve_constraint<C: XpbdConstraint<ENTITY_COUNT> + Component, const ENTITY_COUNT: usize>(
mut commands: Commands,
mut bodies: Query<RigidBodyQuery>,
mut constraints: Query<&mut C, (Without<RigidBody>, Without<DisableJoint>)>,
mut constraints: Query<&mut C, (Without<RigidBody>, Without<JointDisabled>)>,
time: Res<Time>,
) {
let delta_secs = time.delta_seconds_adjusted();
Expand Down

0 comments on commit 4387ebf

Please sign in to comment.