@@ -63,7 +63,7 @@ impl Default for RevoluteMotorBundle {
6363 fn default ( ) -> Self {
6464 Self {
6565 motor : RevoluteMotor ,
66- stiffness : MotorProportionalGain ( 0.0000001 ) ,
66+ stiffness : MotorProportionalGain ( 1e-7 ) ,
6767 damping : MotorDerivativeGain ( 0.0 ) ,
6868 integral_gain : MotorIntegralGain ( 0.0 ) ,
6969 max_torque : MotorMaxTorque ( None ) ,
@@ -75,21 +75,21 @@ impl Default for RevoluteMotorBundle {
7575}
7676
7777pub struct MotorPlugin {
78- pub remove_dampening : bool ,
78+ pub remove_dampning : bool ,
7979 pub substep_count : Option < u32 > ,
8080}
8181
8282impl Plugin for MotorPlugin {
8383 fn build ( & self , app : & mut App ) {
8484 app. add_systems ( FixedUpdate , multi_target_warning)
85- . add_systems ( FixedUpdate , non_normalized_axis_warning )
85+ . add_systems ( FixedUpdate , warn_if_axis_not_normalized )
8686 . add_systems ( FixedUpdate , enforce_velocity_constraints)
8787 . add_systems ( FixedUpdate , update_motor_rotation_state)
8888 . add_systems ( FixedUpdate , update_motor_angular_velocity_state)
8989 . add_systems ( FixedUpdate , apply_velocity_based_torque)
9090 . add_systems ( FixedUpdate , apply_rotation_based_torque) ;
9191
92- if self . remove_dampening {
92+ if self . remove_dampning {
9393 app. add_systems ( FixedUpdate , disable_damping) ;
9494 }
9595
@@ -102,13 +102,13 @@ impl Plugin for MotorPlugin {
102102impl Default for MotorPlugin {
103103 fn default ( ) -> Self {
104104 Self {
105- remove_dampening : true ,
105+ remove_dampning : true ,
106106 substep_count : Some ( 1000 ) ,
107107 }
108108 }
109109}
110110
111- fn non_normalized_axis_warning ( query : Query < & RevoluteJoint , Added < RevoluteMotor > > ) {
111+ fn warn_if_axis_not_normalized ( query : Query < & RevoluteJoint , Added < RevoluteMotor > > ) {
112112 for joint in query. iter ( ) {
113113 if joint. aligned_axis . length ( ) != 1.0 {
114114 error ! ( "Aligned axis must be normalized for motor to work" )
0 commit comments