Skip to content

Commit bd95b91

Browse files
committed
chore: remove dead code
1 parent e7dd64a commit bd95b91

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

examples2d/character_controller2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ pub fn init_world(testbed: &mut Testbed) {
167167
// platform.set_angvel(angvel, true);
168168
}
169169
});
170+
170171
/*
171172
* Callback to update the character based on user inputs.
172173
*/

examples2d/utils/character.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ pub fn update_character(
4040
update_kinematic_controller(graphics, physics, character_handle, controller)
4141
}
4242
CharacterControlMode::Pid => {
43-
// // Keep the time constant in sync.
44-
// pid.lin_kp = Vector::repeat(physics.integration_parameters.inv_dt());
45-
// pid.ang_kp = AngVector::repeat(physics.integration_parameters.inv_dt());
4643
update_pid_controller(graphics, physics, character_handle, pid)
4744
}
4845
}

examples3d/utils/character.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ pub fn update_character(
3939
update_kinematic_controller(graphics, physics, character_handle, controller)
4040
}
4141
CharacterControlMode::Pid => {
42-
// // Keep the time constant in sync.
43-
// pid.lin_kp = Vector::repeat(physics.integration_parameters.inv_dt());
44-
// pid.ang_kp = AngVector::repeat(physics.integration_parameters.inv_dt());
4542
update_pid_controller(graphics, physics, character_handle, pid)
4643
}
4744
}

0 commit comments

Comments
 (0)