@@ -89,19 +89,19 @@ impl PrismaticJoint {
8989 /// The motor affecting the joint’s translational degree of freedom.
9090 #[ must_use]
9191 pub fn motor ( & self ) -> Option < & JointMotor > {
92- self . data . motor ( JointAxis :: X )
92+ self . data . motor ( JointAxis :: LinX )
9393 }
9494
9595 /// Set the spring-like model used by the motor to reach the desired target velocity and position.
9696 pub fn set_motor_model ( & mut self , model : MotorModel ) -> & mut Self {
97- self . data . set_motor_model ( JointAxis :: X , model) ;
97+ self . data . set_motor_model ( JointAxis :: LinX , model) ;
9898 self
9999 }
100100
101101 /// Sets the target velocity this motor needs to reach.
102102 pub fn set_motor_velocity ( & mut self , target_vel : Real , factor : Real ) -> & mut Self {
103103 self . data
104- . set_motor_velocity ( JointAxis :: X , target_vel, factor) ;
104+ . set_motor_velocity ( JointAxis :: LinX , target_vel, factor) ;
105105 self
106106 }
107107
@@ -113,7 +113,7 @@ impl PrismaticJoint {
113113 damping : Real ,
114114 ) -> & mut Self {
115115 self . data
116- . set_motor_position ( JointAxis :: X , target_pos, stiffness, damping) ;
116+ . set_motor_position ( JointAxis :: LinX , target_pos, stiffness, damping) ;
117117 self
118118 }
119119
@@ -126,25 +126,25 @@ impl PrismaticJoint {
126126 damping : Real ,
127127 ) -> & mut Self {
128128 self . data
129- . set_motor ( JointAxis :: X , target_pos, target_vel, stiffness, damping) ;
129+ . set_motor ( JointAxis :: LinX , target_pos, target_vel, stiffness, damping) ;
130130 self
131131 }
132132
133133 /// Sets the maximum force the motor can deliver.
134134 pub fn set_motor_max_force ( & mut self , max_force : Real ) -> & mut Self {
135- self . data . set_motor_max_force ( JointAxis :: X , max_force) ;
135+ self . data . set_motor_max_force ( JointAxis :: LinX , max_force) ;
136136 self
137137 }
138138
139139 /// The limit distance attached bodies can translate along the joint’s principal axis.
140140 #[ must_use]
141141 pub fn limits ( & self ) -> Option < & JointLimits < Real > > {
142- self . data . limits ( JointAxis :: X )
142+ self . data . limits ( JointAxis :: LinX )
143143 }
144144
145145 /// Sets the `[min,max]` limit distances attached bodies can translate along the joint’s principal axis.
146146 pub fn set_limits ( & mut self , limits : [ Real ; 2 ] ) -> & mut Self {
147- self . data . set_limits ( JointAxis :: X , limits) ;
147+ self . data . set_limits ( JointAxis :: LinX , limits) ;
148148 self
149149 }
150150}
0 commit comments